Add support for UEV_ONCE and UEV_NONBLOCK run flags to uev_run()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2013-08-06 02:00:24 +02:00
1 parent d6e0146803
commit 66c5606e34
3 files changed
+24 -11

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ int main(void)
uev_timer_init(&ctx, &periodic, periodic_task, NULL, 200, 200);
/* Start event loop */
uev_run(&ctx);
uev_run(&ctx, 0);
fprintf(stderr, "Period is %d must be 10: %s\n", period, 10 == period ? "OK" : "ERROR!");
if (10 != period)