Use wxCondition::Signal() rather than Broadcast()

The latter is unnecessary when there is only one thread to wake up.
This commit is contained in:
Vadim Zeitlin
2021-01-11 01:12:06 +01:00
parent 1d52f1cbb5
commit fd1d396406

View File

@@ -361,7 +361,7 @@ wxWebSessionCURL::~wxWebSessionCURL()
// Notify the work thread
m_shuttingDown = true;
wxMutexLocker lock(m_mutex);
m_condition.Broadcast();
m_condition.Signal();
}
// Wait for work thread to finish
@@ -519,7 +519,7 @@ bool wxWebSessionCURL::StartRequest(wxWebRequestCURL & request)
// Signal the worker thread to resume work
wxMutexLocker lock(m_mutex);
m_condition.Broadcast();
m_condition.Signal();
return true;
}