Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZStd::binary_semaphore Class Reference

#include <binary_semaphore.h>

Public Types

typedef condition_variable::native_handle_type native_handle_type
 

Public Member Functions

 binary_semaphore (bool initialState=false)
 
 binary_semaphore (const char *name, bool initialState=false)
 
void acquire ()
 
template<class Rep , class Period >
bool try_acquire_for (const chrono::duration< Rep, Period > &rel_time)
 
template<class Clock , class Duration >
bool try_acquire_until (const chrono::time_point< Clock, Duration > &abs_time)
 
void release ()
 
native_handle_type native_handle ()
 

Detailed Description

Binary semaphore class (aka event). In general is implemented via standard semaphore with max count = 1, but on "some" platforms there are more efficient ways of doing it.


The documentation for this class was generated from the following file: