From 801e8b43b13f1cb67d9e9ba4aae5acb274ccdfbc Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:13:35 +0200 Subject: 3.21 --- library/icon_buffer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'library/icon_buffer.cpp') diff --git a/library/icon_buffer.cpp b/library/icon_buffer.cpp index 5d4dd19b..2c17f6da 100644 --- a/library/icon_buffer.cpp +++ b/library/icon_buffer.cpp @@ -297,9 +297,10 @@ public: void setWorkload(const std::vector& newLoad) //context of main thread { - boost::unique_lock dummy(lockFiles); - filesToLoad = newLoad; - + { + boost::unique_lock dummy(lockFiles); + filesToLoad = newLoad; + } conditionNewFiles.notify_one(); //condition handling, see: http://www.boost.org/doc/libs/1_43_0/doc/html/thread/synchronization.html#thread.synchronization.condvar_ref } -- cgit