![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#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_ENTRY * | prev |
| Previous entry in Synchronizer table. | |
| SYNCHRONIZER_ENTRY * | next |
| Next entry in Synchronizer table. | |
| 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_ENTRY* prev |
Previous entry in Synchronizer table.
| SYNCHRONIZER_ENTRY* next |
Next entry in Synchronizer table.