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>
diff --git a/src/vcl/vcl_event.h b/src/vcl/vcl_event.h
index 9380f73..7b64ede 100644
--- a/src/vcl/vcl_event.h
+++ b/src/vcl/vcl_event.h
@@ -51,6 +51,7 @@
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 @@
* - 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