MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / EventImpl

Method EventImpl

cpp/src/platform/unix/EventImpl.cpp:40–60  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Constructor -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

38// Constructor
39//-----------------------------------------------------------------------------
40EventImpl::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>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected