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

Method Notify

cpp/src/platform/windows/WaitImpl.cpp:121–134  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Notify all the watchers that the object has become signalled -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

119// Notify all the watchers that the object has become signalled
120//-----------------------------------------------------------------------------
121void WaitImpl::Notify
122(
123)
124{
125 EnterCriticalSection( &m_criticalSection );
126
127 for( list<Watcher>::iterator it=m_watchers.begin(); it!=m_watchers.end(); ++it )
128 {
129 Watcher const& watcher = *it;
130 watcher.m_callback( watcher.m_context );
131 }
132
133 LeaveCriticalSection( &m_criticalSection );
134}

Callers 1

RunMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected