Crinit -- Configurable Rootfs Init
Loading...
Searching...
No Matches
crinitTaskDB_t Struct Reference

#include <taskdb.h>

Collaboration diagram for crinitTaskDB_t:
Collaboration graph

Data Fields

crinitTask_ttaskSet
 Dynamic array of tasks, corresponds to task configs specified in the series config.
 
size_t taskSetSize
 Current maximum size of the task array.
 
size_t taskSetItems
 Number of elements in the task array.
 
int(* spawnFunc )(struct crinitTaskDB_t *ctx, const crinitTask_t *, crinitDispatchThreadMode_t mode)
 
bool spawnInhibit
 Specifies if process spawning is currently inhibited, respected by crinitTaskDBSpawnReady().
 
pthread_mutex_t lock
 
pthread_cond_t changed
 Condition variable to be signalled if taskSet or spawnInhibit is changed.
 

Detailed Description

Type to store a task database.

Field 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 *, crinitDispatchThreadMode_t mode)

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: