library/src/events/BP-Events.cc
// This should be called at the foot of the event loop after  BP_EventLoopPollForEventsAndLockForMainLoop has been called.
This should be called at the foot of the event loop after  BP_EventLoopPollForEventsAndLockForMainLoop has been called.
This should be called at the foot of the event loop after BP_EventLoopPollForEventsAndLockForMainLoop has been called .
BP_ERROR_T BP_EventLoopUnlockForWorkers(P_BP_EVENT_MANAGER mgr)
{
	BP_EVENTMGR_VALIDATE_WORKING_ENVIRONMENT(ERR_FAILURE);
	if(!mgr)
		return ERR_FAILURE;
	BP_SemaphoreWait(mgr->event_loop_state.lock);
	return ERR_SUCCESS;
}
BP_ERROR_T BP_EventLoopUnlockForWorkers ( P_BP_EVENT_MANAGER mgr ) { BP_EVENTMGR_VALIDATE_WORKING_ENVIRONMENT ( ERR_FAILURE ) ; if ( ! mgr ) return ERR_FAILURE ; BP_SemaphoreWait ( mgr -> event_loop_state . lock ) ; return ERR_SUCCESS ; }
This should be called at the foot of the event loop after  BP_EventLoopPollForEventsAndLockForMainLoop has been called.
This should be called at the foot of the event loop after BP_EventLoopPollForEventsAndLockForMainLoop has been called .
// ensure we have a correct working environment within the event manager // ensure we have a manager // lock before continuing loop // always return err success