RTEMS 6.1-rc1
Files | Data Structures | Macros | Functions | Variables
POSIX Threads Support

Private Support Information for POSIX Threads. More...

Files

file  psxtransschedparam.c
 Translate sched_param into SuperCore Terms.
 
file  pthreadinitthreads.c
 POSIX Threads Initialize User Threads Body.
 

Data Structures

struct  posix_initialization_threads_table
 

Macros

#define PTHREAD_MINIMUM_STACK_SIZE   _POSIX_Threads_Minimum_stack_size
 

Functions

void _POSIX_Threads_Initialize_user_thread (void)
 System initialization handler to create the first user POSIX thread.
 
void _POSIX_Threads_Sporadic_timer (Watchdog_Control *watchdog)
 
int _POSIX_Thread_Translate_to_sched_policy (const Thread_CPU_budget_operations *operations)
 
int _POSIX_Thread_Translate_sched_param (int policy, const struct sched_param *param, Thread_Configuration *config)
 Translates the POSIX scheduling policy and parameters to parts of the thread configuration. More...
 

Variables

const size_t _POSIX_Threads_Minimum_stack_size
 
const posix_initialization_threads_table _POSIX_Threads_User_thread_table
 Initialization table for the first user POSIX thread. More...
 
Thread_Information _POSIX_Threads_Information
 
const pthread_attr_t _POSIX_Threads_Default_attributes
 
const Thread_CPU_budget_operations _POSIX_Threads_Sporadic_budget
 The POSIX threads sporadic budget operations.
 

Detailed Description

Private Support Information for POSIX Threads.

Macro Definition Documentation

◆ PTHREAD_MINIMUM_STACK_SIZE

#define PTHREAD_MINIMUM_STACK_SIZE   _POSIX_Threads_Minimum_stack_size

The following sets the minimum stack size for POSIX threads.

Function Documentation

◆ _POSIX_Thread_Translate_sched_param()

int _POSIX_Thread_Translate_sched_param ( int  policy,
const struct sched_param *  param,
Thread_Configuration config 
)

Translates the POSIX scheduling policy and parameters to parts of the thread configuration.

Parameters
policyis the POSIX scheduling policy.
paramis the pointer to the POSIX scheduling parameters.
[out]configis the pointer to a thread configuration to set the budget algorithm, callout, and CPU time budget.
Return values
0The operation was successful.
EINVALThe POSIX scheduling policy or parameters were invalid.

Variable Documentation

◆ _POSIX_Threads_Default_attributes

const pthread_attr_t _POSIX_Threads_Default_attributes
extern

This variable contains the default POSIX Thread attributes.

◆ _POSIX_Threads_Information

Thread_Information _POSIX_Threads_Information
extern

The following defines the information control block used to manage this class of objects.

◆ _POSIX_Threads_User_thread_table

const posix_initialization_threads_table _POSIX_Threads_User_thread_table
extern

Initialization table for the first user POSIX thread.

This table is used by _POSIX_Threads_Initialize_user_thread() and initialized via <rtems/confdefs.h>.