| 166 | #endif |
| 167 | #ifdef BOOST_THREAD_USES_PTHREAD_TIMEDLOCK |
| 168 | void lock() |
| 169 | { |
| 170 | int res = posix::pthread_mutex_lock(&m); |
| 171 | if (res) |
| 172 | { |
| 173 | boost::throw_exception(lock_error(res,"boost: mutex lock failed in pthread_mutex_lock")); |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | void unlock() |
| 178 | { |
no test coverage detected