From ed446867f5e1ab8f3978533b525d0aeed344c32f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 30 Jun 2004 23:21:49 +0000 Subject: [PATCH] mention that detached threads shouldn't be deleted git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/thread.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/latex/wx/thread.tex b/docs/latex/wx/thread.tex index cd4a11cb24..fa40d4e833 100644 --- a/docs/latex/wx/thread.tex +++ b/docs/latex/wx/thread.tex @@ -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} -- 2.47.2