diff options
Diffstat (limited to 'library/icon_buffer.cpp')
-rw-r--r-- | library/icon_buffer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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<Zstring>& newLoad) //context of main thread { - boost::unique_lock<boost::mutex> dummy(lockFiles); - filesToLoad = newLoad; - + { + boost::unique_lock<boost::mutex> 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 } |