Botan 3.6.1
Crypto and TLS for C&
|
#include <barrier.h>
Public Member Functions | |
Barrier (int value=0) | |
void | sync () |
void | wait (size_t delta) |
Barrier implements a barrier synchronization primitive. wait() will indicate how many threads to synchronize; each thread needing synchronization should call sync(). When sync() returns, the barrier is reset to zero, and the m_syncs counter is incremented. m_syncs is a counter to ensure that wait() can be called after a sync() even if the previously sleeping threads have not awoken.)
|
inlineexplicit |
void Botan::Barrier::sync | ( | ) |
Definition at line 17 of file barrier.cpp.
References Botan::lock().
void Botan::Barrier::wait | ( | size_t | delta | ) |
Definition at line 12 of file barrier.cpp.
References Botan::lock().