Example:
Defines | |
| #define | MTP(thread, proc, name) |
| Declare a thread. | |
Functions | |
| void | mtp_start (struct mtp_thread *t, void(*function)(void *), void *data) |
| Start a thread. | |
|
|
Declare a thread. This macro is used to covneniently declare a thread, and the process in which the thread should execute. The names of the variables provided to the macro should be chosen to be unique within the file that the thread is used. Example:
|
|
||||||||||||||||
|
Start a thread. This function starts the process in which the thread is to run, and also sets up the thread to run within the process. The function should be passed variable names declared with the MTP() macro. Example:
|
1.3.6