# | Line 175 | Line 175 | public: | |
---|---|---|
175 | CheckError(::pthread_cond_wait(&cond, lock)); | |
176 | } | |
177 | ||
178 | + | void Wait(const timespec &wait) |
179 | + | { |
180 | + | CheckError(::pthread_cond_timedwait(&cond, lock, &wait)); |
181 | + | } |
182 | + | |
183 | operator pthread_cond_t *() const | |
184 | { | |
185 | return &cond; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |