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) |
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 | ||
) |
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.
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. |