corosync 3.1.8
timer.c File Reference
#include <config.h>
#include "timer.h"
#include "main.h"
#include <qb/qbdefs.h>
#include <qb/qbutil.h>
Include dependency graph for timer.c:

Go to the source code of this file.

Functions

int corosync_timer_add_absolute (unsigned long long nanosec_from_epoch, void *data, void(*timer_fn)(void *data), corosync_timer_handle_t *handle)
 
int corosync_timer_add_duration (unsigned long long nanosec_duration, void *data, void(*timer_fn)(void *data), corosync_timer_handle_t *handle)
 
void corosync_timer_delete (corosync_timer_handle_t th)
 
unsigned long long corosync_timer_expire_time_get (corosync_timer_handle_t th)
 
unsigned long long cs_timer_time_get (void)
 

Function Documentation

◆ corosync_timer_add_absolute()

int corosync_timer_add_absolute ( unsigned long long nanosec_from_epoch,
void * data,
void(* timer_fn )(void *data),
corosync_timer_handle_t * handle )

Definition at line 43 of file timer.c.

References cs_poll_handle_get().

◆ corosync_timer_add_duration()

int corosync_timer_add_duration ( unsigned long long nanosec_duration,
void * data,
void(* timer_fn )(void *data),
corosync_timer_handle_t * handle )

Definition at line 58 of file timer.c.

References cs_poll_handle_get().

◆ corosync_timer_delete()

void corosync_timer_delete ( corosync_timer_handle_t th)

Definition at line 72 of file timer.c.

References cs_poll_handle_get().

◆ corosync_timer_expire_time_get()

unsigned long long corosync_timer_expire_time_get ( corosync_timer_handle_t th)

Definition at line 78 of file timer.c.

References cs_poll_handle_get().

◆ cs_timer_time_get()

unsigned long long cs_timer_time_get ( void )

Definition at line 92 of file timer.c.