14 #define CRITICAL_REGION(s) { Synchronized _sync(s);
35 m_semaphore = semMCreate(SEM_Q_PRIORITY | SEM_DELETE_SAFE);
38 semDelete(m_semaphore);
46 return semTake(m_semaphore, WAIT_FOREVER);
54 return semGive(m_semaphore);
Definition: Synchronized.h:82
Synchronized(SEM_ID)
Definition: Synchronized.cpp:17
int give()
Definition: Synchronized.h:53
int take()
Definition: Synchronized.h:45
Definition: Synchronized.h:31
virtual ~Synchronized()
Definition: Synchronized.cpp:32