29#ifndef XRPL_CORE_SEMAPHORE_H_INCLUDED
30#define XRPL_CORE_SEMAPHORE_H_INCLUDED
37template <
class Mutex,
class CondVar>
void wait()
Block until notify is called.
basic_semaphore(size_type count=0)
Create the semaphore, with an optional initial count.
bool try_wait()
Perform a non-blocking wait.
void notify()
Increment the count and unblock one waiting thread.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.