18 #include "pandabase.h"
20 #include "conditionVar.h"
21 #include "mutexHolder.h"
39 INLINE Semaphore(
const Semaphore ©);
40 INLINE
void operator = (
const Semaphore ©);
43 BLOCKING INLINE
void acquire();
44 BLOCKING INLINE
bool try_acquire();
47 INLINE
int get_count()
const;
48 void output(ostream &out)
const;
57 operator << (ostream &out,
const Semaphore &sem) {
62 #include "psemaphore.I"
A classic semaphore synchronization primitive.
A standard mutex, or mutual exclusion lock.
A condition variable, usually used to communicate information about changing state to a thread that i...