| 114 | pthread_mutex_unlock(&m_mutex); |
| 115 | } |
| 116 | void wait() |
| 117 | { |
| 118 | assert(m_recursion_count == 1); |
| 119 | assert(m_owner == pthread_self()); |
| 120 | m_recursion_count--; |
| 121 | pthread_cond_wait(&m_cond, &m_mutex); |
| 122 | m_recursion_count++; |
| 123 | m_owner = pthread_self(); |
| 124 | } |
| 125 | void signal() |
| 126 | { |
| 127 | assert(m_recursion_count > 0); |
no test coverage detected