mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
dpc: add dpc_prepare
This commit is contained in:
@@ -15,7 +15,8 @@ typedef struct _dpc_t {
|
||||
dpcarg_t arg;
|
||||
} dpc_t;
|
||||
|
||||
void dpc_enqueue(dpc_t *dpc, dpcfn_t, dpcarg_t);
|
||||
void dpc_prepare(dpc_t *dpc, dpcfn_t fn);
|
||||
void dpc_enqueue(dpc_t *dpc, dpcarg_t arg);
|
||||
void dpc_dequeue(dpc_t *dpc);
|
||||
void dpc_init();
|
||||
|
||||
|
||||
@@ -11,9 +11,8 @@ typedef struct timerentry_t {
|
||||
struct timerentry_t *next;
|
||||
time_t absolutetick;
|
||||
time_t repeatus;
|
||||
dpcfn_t fn;
|
||||
dpcarg_t arg;
|
||||
dpc_t dpc;
|
||||
dpcarg_t arg;
|
||||
bool fired;
|
||||
} timerentry_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user