#ifndef _beos_semaphore_sync_object_h_
#define _beos_semaphore_sync_object_h_
#include <cppunit/SynchronizedObject.h>
#include <OS.h>
not need to explicitly use it anywhere in your testing code.
*/
class CPPUNIT_API SemaphoreSyncObject : public CppUnit::SynchronizedObject::SynchronizationObject {
public:
SemaphoreSyncObject();
virtual ~SemaphoreSyncObject();
virtual void lock();
virtual void unlock();
protected:
sem_id fSemId;
private:
SemaphoreSyncObject( const SemaphoreSyncObject © );
void operator =( const SemaphoreSyncObject © );
};
#endif