----------------------------------------------------------------------------- Notify all the watchers that the object has become signalled -----------------------------------------------------------------------------
| 119 | // Notify all the watchers that the object has become signalled |
| 120 | //----------------------------------------------------------------------------- |
| 121 | void 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 | } |