]> git.saurik.com Git - wxWidgets.git/commitdiff
clarify Wait() semantics (see patch 1652076)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Feb 2007 19:17:18 +0000 (19:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Feb 2007 19:17:18 +0000 (19:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/thread.tex

index 7a8c8ee32cf507acaab86ddf734edf0ecf6fbb07..ad1cb401fd0753c2b2d8adc8ab896fe9ab27190a 100644 (file)
@@ -461,10 +461,11 @@ See also \helpref{Sleep()}{wxthreadsleep}.
 
 \constfunc{ExitCode}{Wait}{\void}
 
-Gracefully terminates a joinable thread, either when the thread calls 
-\helpref{TestDestroy}{wxthreadtestdestroy} or finished processing, and 
-returns the value the thread returned from 
-\helpref{wxThread::Entry}{wxthreadentry} or {\tt (ExitCode)-1} on error. 
+Waits for a joinable thread to terminate and returns the value the thread
+returned from \helpref{wxThread::Entry}{wxthreadentry} or {\tt (ExitCode)-1} on
+error. Notice that, unlike \helpref{Delete}{wxthreaddelete} doesn't cancel the
+thread in any way so the caller waits for as long as it takes to the thread to
+exit.
 
 You can only Wait() for joinable (not detached) threads.