Go to the source code of this file.
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. | |
mutex_t | mutex_new () |
void | mutex_init (mutex_t) |
void | mutex_delete (vm_t, mutex_t) |
void | mutex_deinit (mutex_t) |
long | mutex_lock (vm_t, mutex_t, thread_t) |
long | mutex_unlock (vm_t, mutex_t, thread_t) |
vm_blocker_t | blocker_new () |
void | blocker_free (vm_blocker_t) |
void | blocker_suspend (vm_t, vm_blocker_t, thread_t) |
void | blocker_resume (vm_t, vm_blocker_t) |