void _Thread_Load_environment(Thread_Control *the_thread)
Initializes enviroment for a thread.
Thread entry information.
static __inline__ void _Thread_State_acquire_critical(Thread_Control *the_thread, ISR_lock_Context *lock_context)
Acquires the lock context in a critical section.
Thread_Start_information Start
User Extension Handler API.
static __inline__ void _Thread_State_release(Thread_Control *the_thread, ISR_lock_Context *lock_context)
Releases the lock context and enables interrupts.
static __inline__ Per_CPU_Control * _Thread_Dispatch_disable_critical(const ISR_lock_Context *lock_context)
Disables thread dispatching inside a critical section (interrupts disabled).
static __inline__ bool _States_Is_dormant(States_Control the_states)
Checks if DORMANT state is set.
States_Control current_state
void _Thread_Dispatch_enable(Per_CPU_Control *cpu_self)
Enables thread dispatching.
static void _User_extensions_Thread_start(Thread_Control *started)
Starts a thread.
States_Control _Thread_Clear_state_locked(Thread_Control *the_thread, States_Control state)
Clears the specified thread state without locking the lock context.
bool _Thread_Start(Thread_Control *the_thread, const Thread_Entry_information *entry, ISR_lock_Context *lock_context)
Starts the specified thread.
Inlined Routines from the Thread Handler.
Local ISR lock context for acquire and release pairs.