]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor clarification
authorRobert Roebling <robert@roebling.de>
Tue, 29 Apr 2008 09:53:36 +0000 (09:53 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 29 Apr 2008 09:53:36 +0000 (09:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/doxygen/overviews/thread.h
interface/event.h

index 37b6d2ae3036eafedaf86a3d3fe89fe0d875824d..27344955838e6dfc83cf31480ffd64c41bc3fa02 100644 (file)
@@ -45,7 +45,7 @@ Win32 a thread can only access GDI objects such as pens, brushes, c created by
 itself and not by the other threads).
 
 For communication between secondary threads and the main thread, you may use
-wxEvtHandler::AddPendingEvent or its short version wxPostEvent. These functions
+wxEvtHandler::QueueEvent or its short version ::wxQueueEvent. These functions
 have a thread-safe implementation so that they can be used as they are for
 sending events from one thread to another. However there is no built in method
 to send messages to the worker threads and you will need to use the available
index 1b7468948811e76d40dd63513d9760c06e11fcdb..4527139b108b61e46dae3565ed1b38d03a868c52 100644 (file)
@@ -292,12 +292,12 @@ public:
         @code
             void FunctionInAWorkerThread(const wxString& str)
             {
-                wxCommandEvent * const e = new wxCommandEvent;
+                wxCommandEvent* evt = new wxCommandEvent;
 
-                // NOT e->SetString(str) as this would be a shallow copy
-                e->SetString(str.c_str()); // make a deep copy
+                // NOT evt->SetString(str) as this would be a shallow copy
+                evt->SetString(str.c_str()); // make a deep copy
 
-                wxTheApp->QueueEvent(new wxCommandEvent
+                wxTheApp->QueueEvent( evt );
             }
         @endcode