30class EXPCL_PANDA_PIPELINE Semaphore {
32 INLINE
explicit Semaphore(
int initial_count = 1);
33 Semaphore(
const Semaphore ©) =
delete;
34 ~Semaphore() =
default;
36 Semaphore &operator = (
const Semaphore ©) =
delete;
44 void output(std::ostream &out)
const;
53operator << (std::ostream &out,
const Semaphore &sem) {
A condition variable, usually used to communicate information about changing state to a thread that i...
A standard mutex, or mutual exclusion lock.
A classic semaphore synchronization primitive.
bool try_acquire()
If the semaphore can be acquired without blocking, does so and returns true.
int release()
Increments the semaphore's internal count.
int get_count() const
Returns the current semaphore count.
void acquire()
Decrements the internal count.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.