tor  0.4.2.1-alpha-dev
Data Fields
periodic_timer_t Struct Reference

Data Fields

struct event * ev
 
void(* cb )(struct periodic_timer_t *, void *)
 
void * data
 

Detailed Description

Represents a timer that's run every N microseconds by Libevent.

Definition at line 216 of file compat_libevent.c.

Field Documentation

◆ cb

void(* periodic_timer_t::cb) (struct periodic_timer_t *, void *)

The callback we'll be invoking whenever the event triggers

Definition at line 220 of file compat_libevent.c.

Referenced by periodic_timer_cb(), and periodic_timer_new().

◆ data

void* periodic_timer_t::data

User-supplied data for the callback

Definition at line 222 of file compat_libevent.c.

Referenced by periodic_timer_cb().

◆ ev

struct event* periodic_timer_t::ev

Underlying event used to implement this periodic event.

Definition at line 218 of file compat_libevent.c.

Referenced by periodic_timer_disable(), and periodic_timer_launch().


The documentation for this struct was generated from the following file: