| 62 | } |
| 63 | |
| 64 | bool thread_mutex::lock() |
| 65 | { |
| 66 | int ret = acl_pthread_mutex_lock(mutex_); |
| 67 | if (ret) { |
| 68 | #ifdef ACL_UNIX |
| 69 | acl_set_error(ret); |
| 70 | logger_error("pthread_mutex_lock error %s", last_serror()); |
| 71 | #endif |
| 72 | return false; |
| 73 | } |
| 74 | return true; |
| 75 | } |
| 76 | |
| 77 | bool thread_mutex::try_lock() |
| 78 | { |
no test coverage detected