p2  0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Aio_timer Class Reference

create and init a Aio_timer object More...

Public Member Functions

static PN aio_timer_start (Potion *P, PN cl, PN self, PN cb, PN timeout, PN repeat)
 
static PN aio_timer_stop (Potion *P, PN cl, PN self)
 
static PN aio_timer_again (Potion *P, PN cl, PN self)
 
static PN aio_timer_get_repeat (Potion *P, PN cl, PN self)
 
static PN aio_timer_set_repeat (Potion *P, PN cl, PN self, PN repeat)
 

Detailed Description

create and init a Aio_timer object

Parameters
loopAio_loop, defaults to uv_default_loop()
See also
http://nikhilm.github.io/uvbook/utilities.html#timers

Member Function Documentation

static PN aio_timer_start ( Potion P,
PN  cl,
PN  self,
PN  cb,
PN  timeout,
PN  repeat 
)

Definition at line 1386 of file aio.c.

static PN aio_timer_stop ( Potion P,
PN  cl,
PN  self 
)

Definition at line 1396 of file aio.c.

static PN aio_timer_again ( Potion P,
PN  cl,
PN  self 
)

Stop the timer, and if it is repeating restart it using the repeat value as the timeout. If the timer has never been started before it returns -1 and sets the error to UV_EINVAL.

Definition at line 1407 of file aio.c.

static PN aio_timer_get_repeat ( Potion P,
PN  cl,
PN  self 
)

Definition at line 1415 of file aio.c.

static PN aio_timer_set_repeat ( Potion P,
PN  cl,
PN  self,
PN  repeat 
)

Set the repeat value in milliseconds. Note that if the repeat value is set from a timer callback it does not immediately take effect. If the timer was non-repeating before, it will have been stopped. If it was repeating, then the old repeat value will have been used to schedule the next timeout.

Definition at line 1426 of file aio.c.


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