----------------------------------------------------------------------------- Constructor -----------------------------------------------------------------------------
| 38 | // Constructor |
| 39 | //----------------------------------------------------------------------------- |
| 40 | EventImpl::EventImpl |
| 41 | ( |
| 42 | ): |
| 43 | m_manualReset( true ), |
| 44 | m_isSignaled( false ), |
| 45 | m_waitingThreads( 0 ) |
| 46 | { |
| 47 | pthread_mutexattr_t ma; |
| 48 | pthread_mutexattr_init( &ma ); |
| 49 | pthread_mutexattr_settype( &ma, PTHREAD_MUTEX_ERRORCHECK ); |
| 50 | pthread_mutex_init( &m_lock, &ma ); |
| 51 | pthread_mutexattr_destroy( &ma ); |
| 52 | |
| 53 | pthread_condattr_t ca; |
| 54 | pthread_condattr_init( &ca ); |
| 55 | #ifndef __NetBSD__ |
| 56 | pthread_condattr_setpshared( &ca, PTHREAD_PROCESS_PRIVATE ); |
| 57 | #endif |
| 58 | pthread_cond_init( &m_condition, &ca ); |
| 59 | pthread_condattr_destroy( &ca ); |
| 60 | } |
| 61 | |
| 62 | //----------------------------------------------------------------------------- |
| 63 | // <EventImpl::~EventImpl> |
nothing calls this directly
no outgoing calls
no test coverage detected