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

Method Reset

cpp/src/platform/unix/EventImpl.cpp:126–143  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Set the event to not signalled -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

124// Set the event to not signalled
125//-----------------------------------------------------------------------------
126void EventImpl::Reset
127(
128)
129{
130 int err = pthread_mutex_lock ( &m_lock );
131 if( err != 0 )
132 {
133 fprintf(stderr, "EventImpl::Reset lock error %d (%d)\n", errno, err );
134 assert( 0 );
135 }
136 m_isSignaled = false;
137 err = pthread_mutex_unlock( &m_lock );
138 if( err != 0 )
139 {
140 fprintf(stderr, "EventImpl::Reset unlock error %d (%d)\n", errno, err );
141 assert( 0 );
142 }
143}
144
145//-----------------------------------------------------------------------------
146// <EventImpl::IsSignalled>

Callers 1

StartMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected