From d718be39fb3892ab94deddc4ad543c5682484c6d Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Fri, 10 Apr 2015 20:52:49 +0200 Subject: Posting semaphore on eventpush. --- src/cachemanager.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cachemanager.cc b/src/cachemanager.cc index 81d809a..366cd49 100644 --- a/src/cachemanager.cc +++ b/src/cachemanager.cc @@ -177,8 +177,11 @@ void CacheManager::thread_main() void CacheManager::pushEvent(event_t e) { // Check that if event should be merged (Maybe by event queue (ie. push in front). + { MutexAutolock l(m_events); eventqueue.push_back(e); + } + sem.post(); } CacheManager::event_t CacheManager::createEvent(cacheid_t id, cmd_t cmd) -- cgit v1.2.3