Vireo  0.0
Vireo 3D Rendering Hardware Interface
Semaphore Class Reference

Detailed Description

A Semaphore object. Semaphores are a synchronization primitive that can be used to insert a dependency between queue operations (GPU/GPU synchronization)

Manual page : Semaphores

Public Member Functions

 Semaphore (const SemaphoreType type)
 
auto getType () const
 
auto getValue () const
 
void setValue (const uint64_t value)
 
void incrementValue ()
 
void decrementValue ()
 
virtual ~Semaphore () = default
 
 Semaphore (const Semaphore &) = delete
 
Semaphore & operator= (const Semaphore &) = delete
 

Protected Attributes

const SemaphoreType type
 
uint64_t value {0}
 

Constructor & Destructor Documentation

Semaphore ( const SemaphoreType  type)
inline
virtual ~Semaphore ( )
virtualdefault
Semaphore ( const Semaphore &  )
delete

Member Function Documentation

void decrementValue ( )
inline

Decrements the current integer value of the semaphore (the value that will be used in the next wait or signal command)

auto getType ( ) const
inline

Return the type of the semaphore

auto getValue ( ) const
inline

Returns the current integer value of the semaphore (the value that will be used in the next wait or signal command)

void incrementValue ( )
inline

Increments the current integer value of the semaphore (the value that will be used in the next wait or signal command)

Semaphore& operator= ( const Semaphore &  )
delete
void setValue ( const uint64_t  value)
inline

Sets the current integer value of the semaphore (the value that will be used in the next wait or signal command)

Member Data Documentation

const SemaphoreType type
protected
uint64_t value {0}
protected