summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cachemanager.cc3
1 files changed, 3 insertions, 0 deletions
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)