aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/vppcom.c
diff options
context:
space:
mode:
authorKeith Burns (alagalah) <alagalah@gmail.com>2018-03-08 16:46:25 -0800
committerKeith Burns (alagalah) <alagalah@gmail.com>2018-03-08 16:46:25 -0800
commit7cf80e08b61c7c48ab834af23b3c7761634e63d2 (patch)
treef6eaf31d4718a3f460f0403a1a520848489c93d4 /src/vcl/vppcom.c
parentd77eee64b17762bf21f8dbe0b9f955513f81f1a5 (diff)
VCL event handling changes
- added vce_get_event_handler() - added check for event before blocking on mutex in vppcom_session_accept() Change-Id: I8e19ea5fcbaa40279cb28152b9923ca8f1328670 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Diffstat (limited to 'src/vcl/vppcom.c')
-rw-r--r--src/vcl/vppcom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 1f9857676e2..4dea4aa3292 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -2754,7 +2754,8 @@ vppcom_session_accept (uint32_t listen_session_index, vppcom_endpt_t * ep,
reg = vce_register_handler (&vcm->event_thread, &evk,
vce_connect_request_handler_fn);
- ev = 0;
+ ev = vce_get_event_from_index (&vcm->event_thread, reg->ev_idx);
+
pthread_mutex_lock (&reg->handler_lock);
while (!ev)
{