summaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_event.h
diff options
context:
space:
mode:
authorKeith Burns (alagalah) <alagalah@gmail.com>2018-03-07 09:26:38 -0800
committerDave Wallace <dwallacelf@gmail.com>2018-03-08 19:58:34 +0000
commit00f44cc1f7f3cc10c0d6b147c0bceb831a9e97fb (patch)
tree1cd1c8cf7c45165799db155a5e1fd236c567b5ac /src/vcl/vcl_event.h
parent9a0546d8c595953cddf5bccfc8c3d0a81f79ad4e (diff)
VCL refactoring
- simplified event handling and unregister - removed fixed need to bit flip event hash key - added spinlock for client_session_fifo (was using sessions_lockp) - removed redundant vars Change-Id: I3c7645da660fb5560efdc4e9347e105df9650a16 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Diffstat (limited to 'src/vcl/vcl_event.h')
-rw-r--r--src/vcl/vcl_event.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vcl/vcl_event.h b/src/vcl/vcl_event.h
index 9380f73f77d..7b64ede6ae1 100644
--- a/src/vcl/vcl_event.h
+++ b/src/vcl/vcl_event.h
@@ -51,6 +51,7 @@ typedef struct vce_event_handler_reg_
pthread_mutex_t handler_lock;
pthread_cond_t handler_cond;
u32 ev_idx;
+ u64 evk; //Event key
u32 replaced_handler_idx;
} vce_event_handler_reg_t;
@@ -124,10 +125,11 @@ vce_event_handler_reg_t * vce_register_handler (vce_event_thread_t *evt,
* - if this handler replaced an existing one, re-instate it.
*
* @param evt - vce_event_thread_t - event system state
- * @param ev - vce_event_t - event to remove
+ * @param handler - handler to be unregistered
* @return success/failure rv
*/
-int vce_unregister_handler (vce_event_thread_t *evt, vce_event_t *ev);
+int vce_unregister_handler (vce_event_thread_t *evt,
+ vce_event_handler_reg_t *handler);
/**
* @brief vce_event_thread_fn