27 #if 0 // I think this header is no longer used (?)
29 #include <boost/thread.hpp>
30 #include <boost/thread/recursive_mutex.hpp>
74 class ConditionSynchronization
80 ConditionSynchronization()
85 condLockWait = boost::unique_lock<boost::mutex>(condMutex, boost::defer_lock_t());
86 condLockNotify = boost::unique_lock<boost::mutex>(condMutex, boost::defer_lock_t());
93 abortRequested =
false;
109 condLockWait.unlock();
117 condLockNotify.lock();
125 condLockNotify.unlock();
134 condVar.notify_one();
146 condVar.wait(condLockWait);
151 return !abortRequested;
161 abortRequested =
true;
167 boost::mutex condMutex;
168 boost::unique_lock<boost::mutex> condLockWait;
169 boost::unique_lock<boost::mutex> condLockNotify;
170 boost::condition_variable condVar;