RTEMS 6.3
Loading...
Searching...
No Matches
threadqops.c File Reference

This source file contains the definition of _Thread_queue_Operations_default, _Thread_queue_Operations_FIFO, _Thread_queue_Operations_priority, and _Thread_queue_Operations_priority_inherit. More...

Macros

#define THREAD_QUEUE_CONTEXT_OF_PRIORITY_ACTIONS(priority_actions)
#define THREAD_QUEUE_PRIORITY_QUEUE_OF_PRIORITY_AGGREGATION(priority_aggregation)

Functions

void _Thread_queue_Do_nothing_priority_actions (Thread_queue_Queue *queue, Priority_Actions *priority_actions)
 Initializes the priority actions so that no actions are performed.
void _Thread_queue_FIFO_enqueue (Thread_queue_Queue *queue, Thread_Control *the_thread, Thread_queue_Context *queue_context)
 Enqueues the thread to the FIFO thread queue.
void _Thread_queue_FIFO_extract (Thread_queue_Queue *queue, Thread_Control *the_thread, Thread_queue_Context *queue_context)
 Extracts the thread from the FIFO thread queue.
Thread_Control * _Thread_queue_FIFO_first (const Thread_queue_Heads *heads)
 Gets the first thread on the FIFO thread queue.
Thread_Control * _Thread_queue_FIFO_surrender (Thread_queue_Queue *queue, Thread_queue_Heads *heads, Thread_Control *previous_owner, Thread_queue_Context *queue_context)
 Surrenders the thread queue to the first thread on the FIFO thread queue.

Variables

const Thread_queue_Operations _Thread_queue_Operations_default
 The default thread queue operations are used when a thread is not enqueued on a thread queue.
const Thread_queue_Operations _Thread_queue_Operations_FIFO
 The FIFO thread queue operations are used when a thread is enqueued on a thread queue and provide FIFO ordering of enqueued threads.
const Thread_queue_Operations _Thread_queue_Operations_priority
 The FIFO thread queue operations are used when a thread is enqueued on a thread queue and provide priority ordering of enqueued threads.
const Thread_queue_Operations _Thread_queue_Operations_priority_inherit
 The FIFO thread queue operations are used when a thread is enqueued on a thread queue and provide priority ordering of enqueued threads with support for priority inheritance.

Detailed Description

Macro Definition Documentation

◆ THREAD_QUEUE_CONTEXT_OF_PRIORITY_ACTIONS

#define THREAD_QUEUE_CONTEXT_OF_PRIORITY_ACTIONS ( priority_actions)
Value:
priority_actions, \
Priority.Actions \
)
#define RTEMS_CONTAINER_OF(_m, _type, _member_name)
Gets the container of a member.
Definition basedefs.h:306
Thread queue context for the thread queue methods.
Definition threadq.h:216

◆ THREAD_QUEUE_PRIORITY_QUEUE_OF_PRIORITY_AGGREGATION

#define THREAD_QUEUE_PRIORITY_QUEUE_OF_PRIORITY_AGGREGATION ( priority_aggregation)
Value:
priority_aggregation, \
Queue \
)
Thread priority queue.
Definition threadq.h:349