| 15 | } |
| 16 | |
| 17 | bool fiber_cond::wait(fiber_mutex& mutex, int timeout /* = -1 */) |
| 18 | { |
| 19 | ACL_FIBER_MUTEX* m = mutex.get_mutex(); |
| 20 | |
| 21 | if (timeout < 0) { |
| 22 | return acl_fiber_cond_wait(cond_, m) == 0; |
| 23 | } |
| 24 | |
| 25 | if (acl_fiber_cond_timedwait(cond_, m, timeout) == 0) { |
| 26 | return true; |
| 27 | } else { |
| 28 | return false; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | bool fiber_cond::notify() |
| 33 | { |
nothing calls this directly
no test coverage detected