![]() |
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 completion (Reset/Complete). | |
| uint32_t | count |
| Count of the completion (Only applicable if COMPLETION_FLAG_COUNTED). | |
| uint32_t | flags |
| Completion Flags (eg COMPLETION_FLAG_IRQ). | |
| SPIN_HANDLE | lock |
| Completion Lock. | |
| LIST_HANDLE | list |
| List of threads waiting on this Completion (or INVALID_HANDLE_VALUE if never used). | |
| thread_wait_proc | wait |
| Wait function to call to wait on the Completion. | |
| thread_wait_ex_proc | waitex |
| Wait function to call to wait with timeout on the Completion. | |
| thread_release_proc | release |
| Release function to call if any threads are waiting when Completion is completed. | |
| thread_abandon_proc | abandon |
| Abandon function to call if any threads are waiting when Completion is destroyed. | |
| COMPLETION_ENTRY * | prev |
| Previous entry in Completion table. | |
| COMPLETION_ENTRY * | next |
| Next entry in Completion table. | |
| uint32_t signature |
Signature for entry validation.
| uint32_t state |
State of the completion (Reset/Complete).
| uint32_t count |
Count of the completion (Only applicable if COMPLETION_FLAG_COUNTED).
| uint32_t flags |
Completion Flags (eg COMPLETION_FLAG_IRQ).
| SPIN_HANDLE lock |
Completion Lock.
| LIST_HANDLE list |
List of threads waiting on this Completion (or INVALID_HANDLE_VALUE if never used).
| thread_wait_proc wait |
Wait function to call to wait on the Completion.
| thread_wait_ex_proc waitex |
Wait function to call to wait with timeout on the Completion.
| thread_release_proc release |
Release function to call if any threads are waiting when Completion is completed.
| thread_abandon_proc abandon |
Abandon function to call if any threads are waiting when Completion is destroyed.
| COMPLETION_ENTRY* prev |
Previous entry in Completion table.
| COMPLETION_ENTRY* next |
Next entry in Completion table.