- Select ref document -

SDK Condition Variable API documentation

version 1.2.157

<dmsdk/dlib/condition_variable.h>

API for platform independent mutex synchronization primitive.

Functions

dmConditionVariable::Broadcast

dmConditionVariable::Broadcast(condition)

Broadcast condition variable, effectively unblocks all of the waithing threads blocked by the condition variable.

Parameters

condition

dmConditionVariable::HConditionVariable ConditionVariable handle.

condition

dmConditionVariable::HConditionVariable ConditionVariable handle.

dmConditionVariable::Delete

dmConditionVariable::Delete(mutex)

Deletes a HConditionVariable.

Parameters

mutex

dmConditionVariable::HConditionVariable ConditionVariable handle to delete.

mutex

dmConditionVariable::HConditionVariable ConditionVariable handle to delete.

dmConditionVariable::New

dmConditionVariable::New()

Create a new HConditionVariable

Returns

condition_variable

dmConditionVariable::HConditionVariable A new ConditionVariable handle.

condition_variable

dmConditionVariable::HConditionVariable A new ConditionVariable handle.

dmConditionVariable::Signal

dmConditionVariable::Signal(condition)

Signal condition variable, effectively unblocks at least one of the waithing threads blocked by the condition variable.

Parameters

condition

dmConditionVariable::HConditionVariable ConditionVariable handle.

condition

dmConditionVariable::HConditionVariable ConditionVariable handle.

dmConditionVariable::Wait

dmConditionVariable::Wait(condition, mutex)

Wait for condition variable. This is a blocking function, and should be called with the mutex being locked.

Parameters

condition

dmConditionVariable::HConditionVariable ConditionVariable handle.

mutex

dmMutex::HMutex Mutex handle.

condition

dmConditionVariable::HConditionVariable ConditionVariable handle.

mutex

dmMutex::HMutex Mutex handle.

Typedefs

dmConditionVariable::HConditionVariable

typedef struct ConditionVariable* HConditionVariable;