Typedefs | |
| typedef __peak_task * | peak_task |
| Opaque task type. | |
| typedef enum _peak_task_flavor_e | peak_task_flavor_t |
| Task info's flavors. | |
Enumerations | |
| enum | _peak_task_flavor_e { PEAK_TASK_FLAVOR_NTHREADS, PEAK_TASK_FLAVOR_MAXFDS } |
| Task info's flavors. More... | |
Functions | |
| peak_task | peak_task_self (void) |
| Get the owning task of the current execution stream. | |
| int | peak_task_get_info (peak_task task, peak_task_flavor_t flavor, int *info) |
| Get task information. | |
| int | peak_task_set_info (peak_task task, peak_task_flavor_t flavor, int *info) |
| Set task information. | |
| const char * | peak_task_get_engine_name (peak_task task) |
| Get task's underlying engine name. | |
| void | peak_task_run (peak_task task) |
| Enter and process the event loop. | |
| void | peak_task_break (peak_task task) |
| Terminate task's event loop. | |
|
|
Opaque task type. One task to rule them all... |
|
|
Task info's flavors. See the documentation for the enumeration _peak_task_flavor_e. |
|
|
|
Terminate task's event loop. This is done asynchronously: the engine waits for events being currently processed and the blocked peak_task_run() exits.
|
|
|
Get task's underlying engine name.
|
|
||||||||||||||||
|
Get task information.
|
|
|
Enter and process the event loop.
Block the task's master thread if no event to process nor timers to fire are found. If called with peak_task_self(), blocks the current thread and use it as the master thread.
|
|
|
Get the owning task of the current execution stream. A task can have several threads, but this function will reference the same task in all of them. |
|
||||||||||||||||
|
Set task information.
|