Mention wxMessageQueue<> in the thread overview

This class should be used in almost all programs using detached threads.
This commit is contained in:
Vadim Zeitlin
2018-01-14 18:34:51 +01:00
parent 673ea07284
commit 5920c7edb1

View File

@@ -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.