RTEMS 6.3
Loading...
Searching...
No Matches
Thread_queue_Context Struct Reference

Thread queue context for the thread queue methods. More...

#include <threadq.h>

Data Structures

union  [union].Timeout
 Interval to wait. More...
struct  [struct].Priority
 Block to manage thread priority changes due to a thread queue operation. More...

Data Fields

Thread_queue_Lock_context Lock_context
 The lock context for the thread queue acquire and release operations.
States_Control thread_state
 The thread state for _Thread_queue_Enqueue().
Thread_queue_Enqueue_callout enqueue_callout
 The enqueue callout for _Thread_queue_Enqueue().
union  Timeout
bool timeout_absolute
 If this member is true, the timeout shall be absolute, otherwise it shall be relative to the current time of the clock.
struct  Priority
Thread_queue_Deadlock_callout deadlock_callout
 Invoked in case of a detected deadlock.

Detailed Description

Thread queue context for the thread queue methods.

See also
_Thread_queue_Context_initialize().

Field Documentation

◆ deadlock_callout

Thread_queue_Deadlock_callout Thread_queue_Context::deadlock_callout

Invoked in case of a detected deadlock.

Must be initialized for _Thread_queue_Enqueue() in case the thread queue may have an owner, e.g. for mutex objects.

See also
_Thread_queue_Context_set_deadlock_callout().

◆ enqueue_callout

Thread_queue_Enqueue_callout Thread_queue_Context::enqueue_callout

The enqueue callout for _Thread_queue_Enqueue().

The callout is invoked after the release of the thread queue lock with thread dispatching disabled. Afterwards the thread is blocked. This callout must be used to install the thread watchdog for timeout handling.

See also
_Thread_queue_Enqueue_do_nothing_extra(). _Thread_queue_Add_timeout_ticks(), _Thread_queue_Add_timeout_monotonic_timespec(), and _Thread_queue_Add_timeout_realtime_timespec().

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