summaryrefslogtreecommitdiff
path: root/library/icon_buffer.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:13:35 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:13:35 +0200
commit801e8b43b13f1cb67d9e9ba4aae5acb274ccdfbc (patch)
tree473f4a9ea5016f146fb2ff6085807bc91a84c84e /library/icon_buffer.cpp
parent3.20 (diff)
downloadFreeFileSync-801e8b43b13f1cb67d9e9ba4aae5acb274ccdfbc.tar.gz
FreeFileSync-801e8b43b13f1cb67d9e9ba4aae5acb274ccdfbc.tar.bz2
FreeFileSync-801e8b43b13f1cb67d9e9ba4aae5acb274ccdfbc.zip
3.21
Diffstat (limited to 'library/icon_buffer.cpp')
-rw-r--r--library/icon_buffer.cpp7
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
}
bgstack15