void Shutdown() { std::lock_guard<std::mutex> lk(s_ts_write_lock); MoveEvents(); ClearPendingEvents(); UnregisterAllEvents(); }
void Shutdown() { std::lock_guard<std::mutex> lk(tsWriteLock); MoveEvents(); ClearPendingEvents(); UnregisterAllEvents(); while (eventPool) { Event *ev = eventPool; eventPool = ev->next; delete ev; } }
void Shutdown() { MoveEvents(); ClearPendingEvents(); UnregisterAllEvents(); while (event_pool) { Event* event = event_pool; event_pool = event->next; delete event; } std::lock_guard<std::recursive_mutex> lock(external_event_section); while (event_ts_pool) { Event* event = event_ts_pool; event_ts_pool = event->next; delete event; } }
void Shutdown() { MoveEvents(); ClearPendingEvents(); UnregisterAllEvents(); while(eventPool) { Event *ev = eventPool; eventPool = ev->next; delete ev; } std::lock_guard<std::recursive_mutex> lk(externalEventSection); while(eventTsPool) { Event *ev = eventTsPool; eventTsPool = ev->next; delete ev; } }
void Shutdown() { MoveEvents(); ClearPendingEvents(); UnregisterAllEvents(); }