From 1d52f1cbb5aed0471a1253173c45f9f46b24dc41 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 11 Jan 2021 01:11:44 +0100 Subject: [PATCH] Add a comment explaining mutex use in wxWebSessionCURL No real changes. --- include/wx/private/webrequest_curl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/private/webrequest_curl.h b/include/wx/private/webrequest_curl.h index b16481bb1d..93990e4e5c 100644 --- a/include/wx/private/webrequest_curl.h +++ b/include/wx/private/webrequest_curl.h @@ -142,6 +142,9 @@ protected: private: CURLM* m_handle; + + // Mutex and condition are used together to signal to the worker thread to + // wake up and mutex is also used to protected m_shuttingDown field. wxMutex m_mutex; wxCondition m_condition; bool m_shuttingDown;