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

#include <threads.h>

Data Fields

uint32_t signature
 Signature for entry validation.
uint32_t count
 Count for this Semaphore (Can be negative when Threads are waiting).
uint32_t maximum
 Maximum count for this Semaphore.
uint32_t flags
 Semaphore Flags (eg SEMAPHORE_FLAG_IRQ).
SPIN_HANDLE lock
 Semaphore Lock.
LIST_HANDLE list
 List of threads waiting on this Semaphore (or INVALID_HANDLE_VALUE if never used).
thread_wait_proc wait
 Wait function to call to wait on the Semaphore if the count is equal to zero on SemaphoreWait.
thread_wait_ex_proc waitex
 Wait function to call to wait with timeout on the Semaphore if the count is equal to zero on SemaphoreWait.
thread_release_proc release
 Release function to call if any threads are waiting on SemaphoreSignal.
thread_abandon_proc abandon
 Abandon function to call if any threads are waiting when SemaphoreSignal is destroyed.
SEMAPHORE_ENTRYprev
 Previous entry in Semaphore table.
SEMAPHORE_ENTRYnext
 Next entry in Semaphore table.

Field Documentation

◆ signature

uint32_t signature

Signature for entry validation.

◆ count

uint32_t count

Count for this Semaphore (Can be negative when Threads are waiting).

◆ maximum

uint32_t maximum

Maximum count for this Semaphore.

◆ flags

uint32_t flags

Semaphore Flags (eg SEMAPHORE_FLAG_IRQ).

◆ lock

Semaphore Lock.

◆ list

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

◆ wait

Wait function to call to wait on the Semaphore if the count is equal to zero on SemaphoreWait.

◆ waitex

Wait function to call to wait with timeout on the Semaphore if the count is equal to zero on SemaphoreWait.

◆ release

Release function to call if any threads are waiting on SemaphoreSignal.

◆ abandon

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

◆ prev

Previous entry in Semaphore table.

◆ next

Next entry in Semaphore table.


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