Definition in file mt.c.
#include "contiki.h"
#include "sys/mt.h"
#include "sys/cc.h"
Go to the source code of this file.
Defines | |
| #define | MT_STATE_READY 1 |
| #define | MT_STATE_RUNNING 2 |
| #define | MT_STATE_WAITING 3 |
| #define | MT_STATE_PEEK 4 |
| #define | MT_STATE_EXITED 5 |
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) |
| Execute parts of a thread. | |
| void | mt_exit (void) |
| Exit a thread. | |
| void | mt_exec_event (struct mt_thread *thread, process_event_t ev, process_data_t data) |
| Post an event to a thread. | |
| void | mt_yield (void) |
| Voluntarily give up the processor. | |
| void | mt_post (struct process *p, process_event_t ev, process_data_t data) |
| Post an event to another process. | |
| void | mt_wait (process_event_t *ev, process_data_t *data) |
| Block and wait for an event to occur. | |
| void | mt_peek (process_event_t *ev, process_data_t *data) |
| void | mtp_start (struct mt_process *t, void(*function)(void *), void *data) |
| Start a thread. | |
| void | mtp_exit (void) |
1.4.4