Crinit -- Configurable Rootfs Init
|
#include <taskdb.h>
Public Attributes | |
crinitTask_t * | taskSet |
Dynamic array of tasks, corresponds to task configs specified in the series config. More... | |
size_t | taskSetSize |
Current maximum size of the task array. More... | |
size_t | taskSetItems |
Number of elements in the task array. More... | |
int(* | spawnFunc )(struct crinitTaskDB_t *ctx, const crinitTask_t *) |
bool | spawnInhibit |
Specifies if process spawning is currently inhibited, respected by crinitTaskDBSpawnReady(). More... | |
pthread_mutex_t | lock |
pthread_cond_t | changed |
Condition variable to be signalled if taskSet or spawnInhibit is changed. More... | |
Type to store a task database.
pthread_cond_t crinitTaskDB_t::changed |
Condition variable to be signalled if taskSet or spawnInhibit is changed.
pthread_mutex_t crinitTaskDB_t::lock |
Mutex to lock the TaskDB, shall be used for any operations on the data structure if multiple threads are involved.
int(* crinitTaskDB_t::spawnFunc) (struct crinitTaskDB_t *ctx, const crinitTask_t *) |
Pointer specifying a function for spawning ready tasks, used by crinitTaskDBSpawnReady()
bool crinitTaskDB_t::spawnInhibit |
Specifies if process spawning is currently inhibited, respected by crinitTaskDBSpawnReady().
crinitTask_t* crinitTaskDB_t::taskSet |
Dynamic array of tasks, corresponds to task configs specified in the series config.
size_t crinitTaskDB_t::taskSetItems |
Number of elements in the task array.
size_t crinitTaskDB_t::taskSetSize |
Current maximum size of the task array.