#include <ace/Synch.h> class ACE_Semaphore {
public:
ACE_Semaphore ( u_int count, int type = USYNC_THREAD, LPCTSTR name = 0, void * = 0, int max = 0x7fffffff );
~ACE_Semaphore (void);
int remove (void);
int acquire (void);
int tryacquire (void);
int release (void);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
const ACE_sema_t &lock (void) const;
private:
ACE_sema_t semaphore_;
inline void operator= (const ACE_Semaphore &);
inline ACE_Semaphore (const ACE_Semaphore &);
};
ACE_Semaphore (
u_int count,
int type = USYNC_THREAD,
LPCTSTR name = 0,
void * = 0,
int max = 0x7fffffff
);
~ACE_Semaphore (void);
int remove (void);
int acquire (void);
int tryacquire (void);
int release (void);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
const ACE_sema_t &lock (void) const;
inline void operator= (const ACE_Semaphore &);
inline ACE_Semaphore (const ACE_Semaphore &);