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::semaphore Class Reference

#include <semaphore.h>

Public Types

enum  { MAXIMUM_COUNT = 0x7fff }
 
typedef native_semaphore_handle_type native_handle_type
 

Public Member Functions

 semaphore (unsigned int initialCount=0, unsigned int maximumCount=MAXIMUM_COUNT)
 
 semaphore (const char *name, unsigned int initialCount=0, unsigned int maximumCount=MAXIMUM_COUNT)
 
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 (unsigned int releaseCount=1)
 
native_handle_type native_handle ()
 
template<class Rep , class Period >
AZ_FORCE_INLINE bool try_acquire_for (const chrono::duration< Rep, Period > &rel_time)
 
template<class Clock , class Duration >
AZ_FORCE_INLINE bool try_acquire_until (const chrono::time_point< Clock, Duration > &abs_time)
 

Detailed Description

Semaphore synchronization primitive. This is not part of the C++0x standard.


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