ev_timer_init(ev_timer*, callback, ev_tstamp after, ev_tstamp repeat)
- configure the timer to trigger after after seconds.
- If repeat is 0, then it will automatically be stopped once the timeout is reached.
- If repeat is positive, then the timer will automatically be configured to trigger again repeat seconds later, again and again.
ev_timer_again(loop, ev_timer*)
- This will act as if the timer timed out and restart it again if it is repeating.
'misc. > libev & libeio' 카테고리의 다른 글
libeio - example: cp (0) | 2012.07.09 |
---|---|
libev - example: stdin (0) | 2012.07.09 |
ANATOMY OF A WATCHER (0) | 2012.07.09 |
libev - some functions controlling the event loop (0) | 2012.07.08 |
libev, libeio (0) | 2012.07.08 |