| 186 | pthread_mutex_destroy(&m_mutex); |
| 187 | } |
| 188 | void WaitForEventForever() { |
| 189 | pthread_mutex_lock(&m_mutex); |
| 190 | while(!m_signaled) { |
| 191 | pthread_cond_wait(&m_cond,&m_mutex); |
| 192 | } |
| 193 | m_signaled = false; |
| 194 | pthread_mutex_unlock(&m_mutex); |
| 195 | } |
| 196 | |
| 197 | //The timeout is seconds + milliseconds, where milliseconds < 1000 |
| 198 | bool WaitForEvent(int sec, int milli) { |
no outgoing calls
no test coverage detected