25 #ifndef WCONDITION_TEST_H
26 #define WCONDITION_TEST_H
30 #include <boost/thread.hpp>
31 #include <cxxtest/TestSuite.h>
33 #include "../WCondition.h"
59 boost::this_thread::sleep( boost::posix_time::seconds( 1 ) );
77 TS_ASSERT_THROWS_NOTHING( c =
new WCondition() );
78 TS_ASSERT_THROWS_NOTHING(
delete c );
bool flag
Flag set to true when thread starts.
WCondition * c
The condition to be used for signalling.
void threadMain()
Thread main method.
void testInstantiation(void)
An instantiation should never throw an exception, as well as tear down.
void testWaitNotify()
Test whether notification is working.
Class to encapsulate boost::condition_variable_any.
virtual void notify()
Notifies all waiting threads.
virtual void wait() const
Wait for the condition.