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.
This commit is contained in:
Frederik Juul Christiani 2017-06-13 11:23:08 +02:00 committed by Jocelyn Turcotte
parent 744208f701
commit fae178f70b

View file

@ -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(); })
{
}