gatelib  2.1
g_mthread_SemaphoreBase.h
1 #pragma once
2 #include "g_mthread_ISyncObject.h"
3 
4 namespace g
5 {
6 namespace mthread
7 {
8 
9 //create an anonimous mutex
10 class G_LIB_ITEM SemaphoreBase : public ISyncObject
11 {
12  G_COPY_CONSTRUCTOR_PROHIBITED(SemaphoreBase);
13 public:
14  virtual ~SemaphoreBase ( ) { }
15 
16  virtual void wait ( );
17  virtual bool tryWait ( );
18  virtual bool wait ( GTimeoutSec_t aTimeOutSec );
19  virtual void put ( GUint32_t incrementum = 1 );
20 
21 protected:
22  SemaphoreBase ( ){}
23 };
24 
25 }//namespace mthread
26 }//namespace g
Definition: g_mthread_ISyncObject.h:26
Definition: g.mthread.ThreadSimpleEvent.h:5
Definition: g_mthread_SemaphoreBase.h:10