(/usr/bin/git)
#include <pthread.h>
#include <stdbool.h>
#include <stdint.h>
#include <time.h>
#include "taskdb.h"
#include "timer.h"
Go to the source code of this file.
◆ TIMER_DB_INITIAL_CAP
| #define TIMER_DB_INITIAL_CAP 256 |
the initial capacity for the crinit timer db.
◆ crinitTimerDB_t
the type for the crinit timer db.
◆ crinitTimerDBAddTimer()
| void crinitTimerDBAddTimer |
( |
char * |
timerStr | ) |
|
Adds a timer to crinits timerDB.
- Parameters
-
| timerStr | the configuration string/name for the timer |
◆ crinitTimerDBInit()
Initialize the timer db handling all of crinit's timers.
- Parameters
-
| taskDB | the task db to initialize the timerdb for |
- Returns
- 0 on success, -1 on error
◆ crinitTimerDBRemoveTimer()
| void crinitTimerDBRemoveTimer |
( |
char * |
timerStr | ) |
|
Removes a timer from crinits timerDB.
- Parameters
-
| timerStr | the configuration string/name for the timer |
◆ crinitTimerDBSpawn()
| int crinitTimerDBSpawn |
( |
void |
| ) |
|
Spawns the timer thread handling all of crinits timer.
- Returns
- 0 on success, -1 on error