RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
threadrestart.c File Reference

This source file contains the implementation of _Thread_Cancel(), _Thread_Change_life(), _Thread_Close(), _Thread_Exit(), _Thread_Join(), _Thread_Kill_zombies(), _Thread_Restart(), and _Thread_Set_life_protection(). More...

#include <rtems/score/threadimpl.h>
#include <rtems/score/apimutex.h>
#include <rtems/score/assert.h>
#include <rtems/score/chainimpl.h>
#include <rtems/score/isrlock.h>
#include <rtems/score/schedulerimpl.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/threadqimpl.h>
#include <rtems/score/userextimpl.h>
#include <rtems/score/watchdogimpl.h>
#include <pthread.h>

Data Structures

struct  Thread_Join_context
 

Macros

#define THREAD_JOIN_TQ_OPERATIONS   &_Thread_queue_Operations_priority_inherit
 

Functions

void _Thread_Kill_zombies (void)
 Kills all zombie threads in the system.
 
Status_Control _Thread_Join (Thread_Control *the_thread, States_Control waiting_for_join, Thread_Control *executing, Thread_queue_Context *queue_context)
 Joins the currently executing thread with the thread.
 
Thread_Cancel_state _Thread_Cancel (Thread_Control *the_thread, Thread_Control *executing, Thread_Life_state life_states_to_clear)
 Cancels the thread.
 
Status_Control _Thread_Close (Thread_Control *the_thread, Thread_Control *executing, Thread_queue_Context *queue_context)
 Closes the thread.
 
RTEMS_NO_RETURN void _Thread_Exit (void *exit_value, Thread_Life_state life_states_to_set)
 Exits the currently executing thread.
 
Status_Control _Thread_Restart (Thread_Control *the_thread, const Thread_Entry_information *entry, ISR_lock_Context *lock_context)
 Restarts the thread.
 
Thread_Life_state _Thread_Change_life (Thread_Life_state life_states_to_clear, Thread_Life_state life_states_to_set, Thread_Life_state ignored_life_states)
 Changes the life of currently executing thread.
 
Thread_Life_state _Thread_Set_life_protection (Thread_Life_state state)
 Set the thread to life protected.
 

Variables

Thread_Zombie_registry _Thread_Zombies
 This object is a registry for threads in the STATES_ZOMBIE state.
 

Detailed Description

This source file contains the implementation of _Thread_Cancel(), _Thread_Change_life(), _Thread_Close(), _Thread_Exit(), _Thread_Join(), _Thread_Kill_zombies(), _Thread_Restart(), and _Thread_Set_life_protection().