2 #ifndef _BASESTEST_HXX_
3 #define _BASESTEST_HXX_
5 #include <cppunit/extensions/HelperMacros.h>
8 #include "Semaphore.hxx"
12 class BasesTest: public CppUnit::TestFixture
14 CPPUNIT_TEST_SUITE( BasesTest );
17 CPPUNIT_TEST_SUITE_END();
30 static void *th1_1(void *);
31 static void *th1_2(void *);
32 static void *th1_3(void *);
33 static void *th2_1(void *);
36 static std::ostringstream _glob;
37 static YACS::BASES::Mutex _m;
38 static YACS::BASES::Semaphore _s1;
39 static YACS::BASES::Semaphore _s2;
41 static const int THREAD_NUM;
42 static const int LOOPS;