summaryrefslogtreecommitdiff
path: root/lib/icon_buffer.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:26:50 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:26:50 +0200
commit669df123648aaa6aeccc70206b5417bc48b4e9ae (patch)
tree463c107a8d6405020bb304f7a7253e6b64afeee0 /lib/icon_buffer.cpp
parent5.18 (diff)
downloadFreeFileSync-669df123648aaa6aeccc70206b5417bc48b4e9ae.tar.gz
FreeFileSync-669df123648aaa6aeccc70206b5417bc48b4e9ae.tar.bz2
FreeFileSync-669df123648aaa6aeccc70206b5417bc48b4e9ae.zip
5.19
Diffstat (limited to 'lib/icon_buffer.cpp')
-rw-r--r--lib/icon_buffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/icon_buffer.cpp b/lib/icon_buffer.cpp
index cf916174..b0874d83 100644
--- a/lib/icon_buffer.cpp
+++ b/lib/icon_buffer.cpp
@@ -426,7 +426,7 @@ public:
{
assert(boost::this_thread::get_id() == mainThreadId );
{
- boost::unique_lock<boost::mutex> dummy(lockFiles);
+ boost::lock_guard<boost::mutex> dummy(lockFiles);
filesToLoad = newLoad;
}
conditionNewFiles.notify_all(); //instead of notify_one(); workaround bug: https://svn.boost.org/trac/boost/ticket/7796
@@ -437,7 +437,7 @@ public:
{
assert(boost::this_thread::get_id() == mainThreadId );
{
- boost::unique_lock<boost::mutex> dummy(lockFiles);
+ boost::lock_guard<boost::mutex> dummy(lockFiles);
filesToLoad.push_back(newEntry); //set as next item to retrieve
}
conditionNewFiles.notify_all();
bgstack15