Data Structures | |
struct | _mutex_t |
struct | _data_stack_entry_t |
struct | _call_stack_entry_t |
struct | _thread_t |
Typedefs | |
typedef struct _thread_t * | thread_t |
typedef struct _call_stack_entry_t * | call_stack_entry_t |
A caller. | |
typedef struct _call_stack_entry_t * | catch_stack_entry_t |
A catcher. | |
Enumerations | |
enum | thread_state_t { ThreadBlocked, ThreadReady, ThreadRunning, ThreadDying, ThreadZombie, ThreadStateMax } |
Thread states. More... | |
Functions | |
thread_t | thread_new (word_t prio, program_t p, word_t ip) |
create a new thread structure. | |
void | thread_init (thread_t, word_t prio, program_t p, word_t ip) |
initialize a newly allocated thread structure. | |
void | thread_delete (vm_t, thread_t) |
free a thread's resources and structure. | |
void | thread_deinit (vm_t vm, thread_t t) |
free a thread's resources. | |
void | thread_set_state (vm_t, thread_t, thread_state_t) |
change thread state. |
typedef struct _call_stack_entry_t* call_stack_entry_t |
A caller.
typedef struct _call_stack_entry_t* catch_stack_entry_t |
A catcher.
enum thread_state_t |
initialize a newly allocated thread structure.
void thread_set_state | ( | vm_t | , | |
thread_t | , | |||
thread_state_t | ||||
) |
change thread state.