Crinit -- Configurable Rootfs Init
crinitTaskDB_t Struct Reference

#include <taskdb.h>

Collaboration diagram for crinitTaskDB_t:
Collaboration graph

Public Attributes

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

Detailed Description

Type to store a task database.

Member Data Documentation

◆ changed

pthread_cond_t crinitTaskDB_t::changed

Condition variable to be signalled if taskSet or spawnInhibit is changed.

◆ lock

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.

◆ spawnFunc

int(* crinitTaskDB_t::spawnFunc) (struct crinitTaskDB_t *ctx, const crinitTask_t *)

Pointer specifying a function for spawning ready tasks, used by crinitTaskDBSpawnReady()

◆ spawnInhibit

bool crinitTaskDB_t::spawnInhibit

Specifies if process spawning is currently inhibited, respected by crinitTaskDBSpawnReady().

◆ taskSet

crinitTask_t* crinitTaskDB_t::taskSet

Dynamic array of tasks, corresponds to task configs specified in the series config.

◆ taskSetItems

size_t crinitTaskDB_t::taskSetItems

Number of elements in the task array.

◆ taskSetSize

size_t crinitTaskDB_t::taskSetSize

Current maximum size of the task array.


The documentation for this struct was generated from the following file: