EVE 1.0
uwork.h File Reference

Header file for the EVE microsecond-scale work scheduling. More...

#include <stdbool.h>
#include <lib/dlist.h>
#include <core/work.h>
Include dependency graph for uwork.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  uwork_t
 

Macros

#define UWORK_USEC(us)   (us)
 
#define UWORK_INIT(x, callback)
 
#define UWORK_INIT_TYPED(x, callback)   (struct uwork_t) UWORK_INIT(x, callback)
 
#define DECLARE_UWORK(x, callback)    struct uwork_t x = UWORK_INIT(x, callback)
 

Typedefs

typedef int32_t uwork_time_t
 
typedef void(* uwork_cb_t) (struct uwork_t *work)
 

Functions

uwork_time_t uwork_now (void)
 
void uwork_schedule (struct uwork_t *work)
 
void uwork_cancel (struct uwork_t *work)
 
static bool uwork_pending (struct uwork_t *work)
 
void uwork_init (void)
 

Detailed Description

Header file for the EVE microsecond-scale work scheduling.

Author
DT, Jetro AS

Definition in file uwork.h.