-private:
- // the number of Signal() calls queued
- //
- // changed by Signal(), accessed by Wait()
- //
- // protected by m_mutexSignalCount
- size_t m_nSignalsMissed;
-
- // protects access to m_nSignalsMissed
- pthread_mutex_t m_mutexSignalCount;
-
- // serializes Broadcast() and/or Signal() calls
- //
- // TODO: I'm not sure if this is really needed but it shouldn't harm
- // neither (except for efficiency condierations). However MSW doesn't
- // do this so maybe we shouldn't do it here neither? (VZ)
- pthread_mutex_t m_mutexSignal;
-
- // a condition variable must be always used with a mutex and so we maintain
- // a list of mutexes - one for each thread that calls Wait().
- //
- // access to this list must be protected by m_mutexListContents
- wxMutexList m_mutexes;
-
- // the condition itself
- pthread_cond_t m_condition;
-
- // protects all accesses to m_mutexes list
- pthread_mutex_t m_mutexListContents;
-};