21#ifndef _RTEMS_SCORE_THREADQ_H
22#define _RTEMS_SCORE_THREADQ_H
90#if defined(RTEMS_MULTIPROCESSING)
101typedef void ( *Thread_queue_MP_callout )(
107#if defined(RTEMS_SMP)
121 Atomic_Uint go_ahead;
132#if defined(RTEMS_SMP)
142 Thread_queue_Gate Gate;
152#if defined(RTEMS_SMP)
240#if defined(RTEMS_SMP)
260 Thread_queue_Link Start;
266 Thread_queue_Link Deadlock;
306#if defined(RTEMS_MULTIPROCESSING)
317 Thread_queue_MP_callout mp_callout;
325#if defined(RTEMS_SMP)
374#if !defined(RTEMS_SMP)
394#if defined(RTEMS_SMP)
415#if defined(RTEMS_SMP)
416 SMP_ticket_lock_Control Lock;
554#if defined(RTEMS_SMP)
555#if defined(RTEMS_DEBUG)
570#if defined(RTEMS_PROFILING)
577 SMP_lock_Stats Lock_stats;
uint32_t Objects_Id
Definition: object.h:80
uint32_t States_Control
Definition: states.h:46
Thread_Control *(* Thread_queue_First_operation)(const Thread_queue_Heads *heads)
Gets the first thread on the queue.
Definition: threadq.h:509
Thread_Control *(* Thread_queue_Surrender_operation)(Thread_queue_Queue *queue, Thread_queue_Heads *heads, Thread_Control *previous_owner, Thread_queue_Context *queue_context)
Thread queue surrender operation.
Definition: threadq.h:492
void(* Thread_queue_Enqueue_operation)(Thread_queue_Queue *queue, Thread_Control *the_thread, Thread_queue_Context *queue_context)
Thread queue enqueue operation.
Definition: threadq.h:463
void(* Thread_queue_Extract_operation)(Thread_queue_Queue *queue, Thread_Control *the_thread, Thread_queue_Context *queue_context)
Thread queue extract operation.
Definition: threadq.h:475
void(* Thread_queue_Priority_actions_operation)(Thread_queue_Queue *queue, Priority_Actions *priority_actions)
Thread queue action operation.
Definition: threadq.h:448
void(* Thread_queue_Enqueue_callout)(Thread_queue_Queue *queue, Thread_Control *the_thread, struct Per_CPU_Control *cpu_self, Thread_queue_Context *queue_context)
Thread queue enqueue callout.
Definition: threadq.h:72
void(* Thread_queue_Deadlock_callout)(Thread_Control *the_thread)
Thread queue deadlock callout.
Definition: threadq.h:86
struct _Thread_queue_Heads Thread_queue_Heads
Thread queue heads.
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition: watchdogticks.h:38
Constants and Structures Associated with the Red-Black Tree Handler.
Constants and Structures Associated with the Object Handler.
Thread Execution State Information.
Local ISR lock context for acquire and release pairs.
Definition: isrlock.h:65
Per CPU Core Structure.
Definition: percpu.h:347
A list of priority actions.
Definition: priority.h:193
The priority aggregation.
Definition: priority.h:133
Red-black tree node.
Definition: rbtree.h:55
Scheduler node for per-thread data.
Definition: schedulernode.h:79
Thread queue context for the thread queue methods.
Definition: threadq.h:198
Thread_queue_Enqueue_callout enqueue_callout
The enqueue callout for _Thread_queue_Enqueue().
Definition: threadq.h:221
struct Thread_queue_Context::@3986 Priority
Block to manage thread priority changes due to a thread queue operation.
Thread_queue_Deadlock_callout deadlock_callout
Invoked in case of a detected deadlock.
Definition: threadq.h:304
const void * arg
The timeout argument, e.g. pointer to struct timespec.
Definition: threadq.h:237
size_t update_count
Count of threads to update the priority via _Thread_Priority_update().
Definition: threadq.h:284
Thread_queue_Lock_context Lock_context
The lock context for the thread queue acquire and release operations.
Definition: threadq.h:203
Watchdog_Interval ticks
The timeout in ticks.
Definition: threadq.h:232
States_Control thread_state
The thread state for _Thread_queue_Enqueue().
Definition: threadq.h:208
Priority_Actions Actions
A priority action list.
Definition: threadq.h:278
Thread_Control * update[2]
Threads to update the priority via _Thread_Priority_update().
Definition: threadq.h:293
union Thread_queue_Context::@3985 Timeout
Interval to wait.
Definition: threadq.h:553
Thread_queue_Queue Queue
The actual thread queue.
Definition: threadq.h:584
Definition: threadq.h:125
ISR_lock_Context Lock_context
The lock context for the thread queue acquire and release operations.
Definition: threadq.h:130
Thread queue operations.
Definition: threadq.h:518
Thread_queue_Surrender_operation surrender
Thread queue surrender operation.
Definition: threadq.h:541
Thread_queue_First_operation first
Thread queue first operation.
Definition: threadq.h:546
Thread_queue_Extract_operation extract
Thread queue extract operation.
Definition: threadq.h:536
Thread_queue_Enqueue_operation enqueue
Thread queue enqueue operation.
Definition: threadq.h:529
Thread_queue_Priority_actions_operation priority_actions
Thread queue priority actions operation.
Definition: threadq.h:522
Thread priority queue.
Definition: threadq.h:324
struct Scheduler_Node * scheduler_node
This priority queue is added to a scheduler node of the owner in case of priority inheritance.
Definition: threadq.h:344
Priority_Aggregation Queue
The actual thread priority queue.
Definition: threadq.h:338
Definition: threadq.h:402
const char * name
The thread queue name.
Definition: threadq.h:436
Thread_queue_Heads * heads
Lock to protect this thread queue.
Definition: threadq.h:426
Thread_Control * owner
The thread queue owner.
Definition: threadq.h:431
Thread queue heads.
Definition: threadq.h:360
Chain_Control Fifo
This is the FIFO discipline list.
Definition: threadq.h:372
union _Thread_queue_Heads::@3987 Heads
Thread_queue_Priority_queue Priority
This is the set of threads for priority discipline waiting.
Definition: threadq.h:378
Chain_Node Free_node
A chain node to add these thread queue heads to the free chain of the thread queue heads dedicated to...
Definition: threadq.h:392
Chain_Control Free_chain
A chain with free thread queue heads providing the spare thread queue heads for a thread once it is d...
Definition: threadq.h:386
Constants for the watchdog ticks.