mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-01 05:22:25 +07:00
Fix example code of timer usage not alarm in README.md
This commit is contained in:
@@ -59,7 +59,7 @@ int main(void)
|
|||||||
|
|
||||||
uev_init(&ctx);
|
uev_init(&ctx);
|
||||||
/* Set up a timer watcher to call cb() every other second */
|
/* Set up a timer watcher to call cb() every other second */
|
||||||
uev_timer_init(&ctx, &timer, cb, NULL, 0, 2 * 1000);
|
uev_timer_init(&ctx, &timer, cb, NULL, 2 * 1000, 2 * 1000);
|
||||||
|
|
||||||
return uev_run(&ctx, 0);
|
return uev_run(&ctx, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user