Add new API; uev_init1(ctx, maxevents) to cap event cache size

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-10-02 17:49:32 +02:00
parent 32d3842f8a
commit 6fa88eacb4
4 changed files with 35 additions and 2 deletions
+1
View File
@@ -57,6 +57,7 @@ void callback (uev_t *w, void *arg, int events);
/* Event loop: Notice the use of flags! */
int uev_init (uev_ctx_t *ctx);
int uev_init1 (uev_ctx_t *ctx, int maxevents);
int uev_exit (uev_ctx_t *ctx);
int uev_run (uev_ctx_t *ctx, int flags); /* UEV_NONE, UEV_ONCE, and/or UEV_NONBLOCK */