29#include <boost/thread.hpp>
73 class ConditionSynchronization
79 ConditionSynchronization()
84 condLockWait = boost::unique_lock<boost::mutex>(condMutex, boost::defer_lock_t());
85 condLockNotify = boost::unique_lock<boost::mutex>(condMutex, boost::defer_lock_t());
92 abortRequested =
false;
108 condLockWait.unlock();
116 condLockNotify.lock();
124 condLockNotify.unlock();
133 condVar.notify_one();
145 condVar.wait(condLockWait);
150 return !abortRequested;
160 abortRequested =
true;
166 boost::mutex condMutex;
167 boost::unique_lock<boost::mutex> condLockWait;
168 boost::unique_lock<boost::mutex> condLockNotify;
169 boost::condition_variable condVar;
This file offers overloads of toIce() and fromIce() functions for STL container types.