diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2015-04-10 20:52:49 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-20 13:22:09 +0100 |
commit | d718be39fb3892ab94deddc4ad543c5682484c6d (patch) | |
tree | 539a7ea411af99b3146870ec2b713572c394c98c /src | |
parent | 61befd2f85609e9cbaecd5f1daf7adbaa1070c76 (diff) |
Posting semaphore on eventpush.
Diffstat (limited to 'src')
-rw-r--r-- | src/cachemanager.cc | 3 |
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) |