Deallocate wxThreadSpecificInfo when wxThread ends.
Cleanup wxThreadSpecificInfo after wxThread::Entry returns to be more memory efficient. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -342,8 +342,16 @@ wxSemaError wxSemaphore::Post()
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/private/threadinfo.h"
|
||||
#include "wx/scopeguard.h"
|
||||
|
||||
void wxThread::Sleep(unsigned long milliseconds)
|
||||
{
|
||||
wxMilliSleep(milliseconds);
|
||||
}
|
||||
|
||||
void *wxThread::CallEntry()
|
||||
{
|
||||
wxON_BLOCK_EXIT0(wxThreadSpecificInfo::ThreadCleanUp);
|
||||
return Entry();
|
||||
}
|
||||
|
Reference in New Issue
Block a user