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
This commit is contained in:
@@ -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
|
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
|
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
|
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}
|
\wxheading{Derived from}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user