Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_SYNCHRONIZER_ENTRY Struct Reference

#include <threads.h>

Data Fields

uint32_t signature
 Signature for entry validation.
uint32_t state
 State of the lock (Locked/Unlocked).
SPIN_HANDLE lock
 Synchronizer Lock.
uint32_t readercount
 Count of current reader locks.
uint32_t writercount
 Count of current writer lock recursions.
THREAD_HANDLE readerlast
 Last thread to acquire reader lock (or INVALID_HANDLE_VALUE if no reader).
THREAD_HANDLE writerowner
 Currently owning writer thread (or INVALID_HANDLE_VALUE if no writer).
LIST_HANDLE readerlist
 List of reader threads waiting on this Synchronizer (or INVALID_HANDLE_VALUE if never used).
LIST_HANDLE writerlist
 List of writer threads waiting on this Synchronizer (or INVALID_HANDLE_VALUE if never used).
thread_wait_proc wait
 Wait function to call to wait on the Synchronizer if it is already locked.
thread_wait_ex_proc waitex
 Wait function to call to wait with timeout on the Synchronizer if it is already locked.
thread_release_proc release
 Release function to call if any threads are waiting when Synchronizer is unlocked.
thread_abandon_proc abandon
 Abandon function to call if any threads are waiting when Synchronizer is destroyed.
SYNCHRONIZER_ENTRYprev
 Previous entry in Synchronizer table.
SYNCHRONIZER_ENTRYnext
 Next entry in Synchronizer table.

Field Documentation

◆ signature

uint32_t signature

Signature for entry validation.

◆ state

uint32_t state

State of the lock (Locked/Unlocked).

◆ lock

Synchronizer Lock.

◆ readercount

uint32_t readercount

Count of current reader locks.

◆ writercount

uint32_t writercount

Count of current writer lock recursions.

◆ readerlast

THREAD_HANDLE readerlast

Last thread to acquire reader lock (or INVALID_HANDLE_VALUE if no reader).

◆ writerowner

THREAD_HANDLE writerowner

Currently owning writer thread (or INVALID_HANDLE_VALUE if no writer).

◆ readerlist

LIST_HANDLE readerlist

List of reader threads waiting on this Synchronizer (or INVALID_HANDLE_VALUE if never used).

◆ writerlist

LIST_HANDLE writerlist

List of writer threads waiting on this Synchronizer (or INVALID_HANDLE_VALUE if never used).

◆ wait

Wait function to call to wait on the Synchronizer if it is already locked.

◆ waitex

Wait function to call to wait with timeout on the Synchronizer if it is already locked.

◆ release

Release function to call if any threads are waiting when Synchronizer is unlocked.

◆ abandon

Abandon function to call if any threads are waiting when Synchronizer is destroyed.

◆ prev

Previous entry in Synchronizer table.

◆ next

Next entry in Synchronizer table.


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