[Pkg-owncloud-commits] [owncloud-client] 42/135: shell_integration/windows: Create _newQueries as a non-signaled auto-reset event.

Sandro Knauß hefee at debian.org
Sat Sep 9 14:28:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

hefee pushed a commit to branch master
in repository owncloud-client.

commit bc2e1a53cbc7dd10c83bb7d69736cb9e750d6571
Author: Frederik Juul Christiani <frederik at vikingsoft.eu>
Date:   Tue Jun 13 11:23:08 2017 +0200

    shell_integration/windows: Create _newQueries as a non-signaled auto-reset event.
    
    Since ResetEvent() is never called, the call to WaitForMultipleObjects()
    can always return immediately once the event has been signaled.
---
 shell_integration/windows/OCUtil/RemotePathChecker.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell_integration/windows/OCUtil/RemotePathChecker.cpp b/shell_integration/windows/OCUtil/RemotePathChecker.cpp
index 16449dd..4a13c1c 100644
--- a/shell_integration/windows/OCUtil/RemotePathChecker.cpp
+++ b/shell_integration/windows/OCUtil/RemotePathChecker.cpp
@@ -175,7 +175,7 @@ RemotePathChecker::RemotePathChecker()
     : _stop(false)
     , _watchedDirectories(make_shared<const vector<wstring>>())
     , _connected(false)
-    , _newQueries(CreateEvent(NULL, true, true, NULL))
+    , _newQueries(CreateEvent(NULL, FALSE, FALSE, NULL))
     , _thread([this]{ this->workerThreadLoop(); })
 {
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list