#include "ek.h"
#include "mt.h"
#include "cc.h"
Functions | |
| void | mt_init (void) |
| Initializes the multithreading library. | |
| void | mt_remove (void) |
| Uninstalls library and cleans up. | |
| void | mt_start (struct mt_thread *thread, void(*function)(void *), void *data) |
| Starts a multithreading thread. | |
| void | mt_exec (struct mt_thread *thread) |
| Start executing a thread. | |
| void | mt_exit (void) |
| Exit a thread. | |
| void | mt_exec_event (struct mt_thread *thread, ek_event_t ev, ek_data_t data) |
| Post an event to a thread. | |
| void | mt_yield (void) |
| Voluntarily give up the processor. | |
| void | mt_post (ek_id_t id, ek_event_t ev, ek_data_t data) |
| Emit a signal to another process. | |
| void | mt_wait (ek_event_t *ev, ek_data_t *data) |
| Block and wait for an event to occur. | |
| void | mtp_start (struct mtp_thread *t, void(*function)(void *), void *data) |
| Start a thread. | |
1.3.6