Removed use of new/delete, switched to use allocator instead.

This commit is contained in:
Branimir Karadžić
2017-11-14 22:09:52 -08:00
parent d90e26f6d0
commit 493c559e8a
8 changed files with 35 additions and 22 deletions

View File

@@ -36,6 +36,8 @@ using namespace Windows::System::Threading;
namespace bx
{
static DefaultAllocator s_allocator;
struct ThreadInternal
{
#if BX_PLATFORM_WINDOWS \
@@ -76,6 +78,7 @@ namespace bx
Thread::Thread()
: m_fn(NULL)
, m_userData(NULL)
, m_queue(&s_allocator)
, m_stackSize(0)
, m_exitCode(kExitSuccess)
, m_running(false)