Loading...
Searching...
No Matches
Data Structures | Functions
as_timer.h File Reference
#include <aerospike/as_std.h>
#include <stddef.h>
+ Include dependency graph for as_timer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  as_timer
 
struct  as_timer_hooks
 

Functions

int as_timer_destroy (as_timer *timer)
 
as_timeras_timer_init (as_timer *timer, void *source, const as_timer_hooks *hooks)
 
as_timeras_timer_new (void *source, const as_timer_hooks *hooks)
 
static void * as_timer_source (const as_timer *tt)
 
bool as_timer_timedout (const as_timer *timer)
 
uint64_t as_timer_timeslice (const as_timer *timer)
 

Function Documentation

◆ as_timer_destroy()

int as_timer_destroy ( as_timer * timer)

Release resources associated with the timer. Calls timer->destroy. If success and if this is a heap allocated timer, then it will be freed.

◆ as_timer_init()

as_timer * as_timer_init ( as_timer * timer,
void * source,
const as_timer_hooks * hooks )

Initialize a stack allocated timer

◆ as_timer_new()

as_timer * as_timer_new ( void * source,
const as_timer_hooks * hooks )

Heap allocate and initialize a timer

◆ as_timer_source()

static void * as_timer_source ( const as_timer * tt)
inlinestatic

Definition at line 68 of file as_timer.h.

References as_timer::source.

◆ as_timer_timedout()

bool as_timer_timedout ( const as_timer * timer)

true if timer has timedout

◆ as_timer_timeslice()

uint64_t as_timer_timeslice ( const as_timer * timer)

returns timeslice assigned for this timer