|
Crinit -- Configurable Rootfs Init
|
Header related to the Process Dispatcher. More...


Go to the source code of this file.
Macros | |
| #define | CRINIT_PROC_DISPATCH_THREAD_STACK_SIZE (PTHREAD_STACK_MIN + 112 * 1024) |
Functions | |
| int | crinitProcDispatchSpawnFunc (crinitTaskDB_t *ctx, const crinitTask_t *t, crinitDispatchThreadMode_t mode) |
| int | crinitSetInhibitWait (bool inh) |
Header related to the Process Dispatcher.
| #define CRINIT_PROC_DISPATCH_THREAD_STACK_SIZE (PTHREAD_STACK_MIN + 112 * 1024) |
Stack size for process dispatch threads.
| int crinitProcDispatchSpawnFunc | ( | crinitTaskDB_t * | ctx, |
| const crinitTask_t * | t, | ||
| crinitDispatchThreadMode_t | mode | ||
| ) |
Process dispatcher function to spawn a task that is ready.
Will create a new thread to handle process spawning of task t and status updates of ctx. The function will return successfully if the thread has been created without error. The thread is created in a detached state so no further management action is necessary.
| ctx | Pointer to context |
| t | Pointer to task that needs spawning |
| mode | Distinguishes between start and stop commands |
| int crinitSetInhibitWait | ( | bool | inh | ) |
Turn waiting for child processes on or off.
If inh is set to true, the process dispatch threads will block before waiting for a child process until waiting is reactivated, leaving terminated child processes as zombies for the time being.
| inh | Set true to inhibit waiting or false to reactivate waiting. |