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