From 5920c7edb15844a11748eccbe886cb66381fb995 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 14 Jan 2018 18:34:51 +0100 Subject: [PATCH] Mention wxMessageQueue<> in the thread overview This class should be used in almost all programs using detached threads. --- docs/doxygen/overviews/thread.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/doxygen/overviews/thread.h b/docs/doxygen/overviews/thread.h index bfa01c31d4..fcbb8895dc 100644 --- a/docs/doxygen/overviews/thread.h +++ b/docs/doxygen/overviews/thread.h @@ -72,6 +72,10 @@ from wxThread and wxEvtHandler to send messages to it: in fact, this does not work at all. You're instead encouraged to use wxThreadHelper as it greatly simplifies the communication and the sharing of resources. +For communication between the main thread and worker threads, you can use +wxMessageQueue<> class that allows to send any kind of custom messages. It is +often convenient to have a special message asking the thread to terminate. + You should also look at the wxThread docs for important notes about secondary threads and their deletion.