]> git.saurik.com Git - wxWidgets.git/commitdiff
mention that detached threads shouldn't be deleted
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Jun 2004 23:21:49 +0000 (23:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Jun 2004 23:21:49 +0000 (23:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/thread.tex

index cd4a11cb241bd568d9585a6d1046f3631079c8c2..fa40d4e83376a94dd701c18218d33bf5d953bc6a 100644 (file)
@@ -26,7 +26,9 @@ heap because the thread will call {\tt delete this;} upon termination. Joinable
 threads may be created on the stack although more usually they will be created
 on the heap as well. Don't create global thread objects because they allocate
 memory in their constructor, which will cause problems for the memory checking
-system.
+system. Finally, another consequence of the handling of the above is that you
+should never delete a detached thread yourself, as this will be done by the
+thread itself when it terminates.
 
 \wxheading{Derived from}