diff options
author | Dave Barach <dave@barachs.net> | 2016-04-19 09:38:35 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2016-04-19 09:38:53 -0400 |
commit | dae88b9a53c2bbdc8a60d05efa7e879e2544eb5a (patch) | |
tree | d7e6bb98d02e1c6475543866e9a9b7dff29cbd4d /vlib-api/vlibmemory/memory_vlib.c | |
parent | a4f16a0e570e663bdf6285b0ac5c4258fcd9ffd3 (diff) |
VPP-6: set epoll wait-time to zero when binary API messages are waiting
Change-Id: I629ef98ecd3b729d2564b3a1ba8c6039f854f86c
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib-api/vlibmemory/memory_vlib.c')
-rw-r--r-- | vlib-api/vlibmemory/memory_vlib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vlib-api/vlibmemory/memory_vlib.c b/vlib-api/vlibmemory/memory_vlib.c index 107fddc31ad..8aa0fe4a20d 100644 --- a/vlib-api/vlibmemory/memory_vlib.c +++ b/vlib-api/vlibmemory/memory_vlib.c @@ -404,6 +404,7 @@ memclnt_process (vlib_main_t * vm, while (1) { pthread_mutex_lock (&q->mutex); if (q->cursize == 0) { + vm->api_queue_nonempty = 0; pthread_mutex_unlock (&q->mutex); if (TRACE_VLIB_MEMORY_QUEUE) @@ -626,6 +627,7 @@ memclnt_queue_signal (int signum) vlib_main_t * vm = vlib_get_main(); vm->queue_signal_pending = 1; + vm->api_queue_nonempty = 1; } static void |