class Sync

Sync primitive class (CPU-side multithreading synchronization).

File location: framework/cauldron/framework/inc/misc/sync.h

Methods

Return type

Description

int

Inc ()
Increments the lock count on the sync primitive.

int

Dec ()
Decrements the lock count on the sync primitive.

int

Get ()
Gets the lock count on the sync primitive.

void

Resets the lock count on the sync primitive.

void

Wait ()
Waits until the lock count is 0 (or reset) on the sync primitive.

Detailed description

Sync primitive class (CPU-side multithreading synchronization).

Methods

Inc

Copied!

int Inc ()

Increments the lock count on the sync primitive.


Dec

Copied!

int Dec ()

Decrements the lock count on the sync primitive.


Get

Copied!

int Get ()

Gets the lock count on the sync primitive.


Reset

Copied!

void Reset ()

Resets the lock count on the sync primitive.


Wait

Copied!

void Wait ()

Waits until the lock count is 0 (or reset) on the sync primitive.