From 283f5269d52ab563dfd666f344979dcfca07282a Mon Sep 17 00:00:00 2001 From: gibbed Date: Thu, 14 May 2015 17:00:15 -0500 Subject: [PATCH] Create native threads with default stack size. --- src/xenia/kernel/objects/xthread.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xenia/kernel/objects/xthread.cc b/src/xenia/kernel/objects/xthread.cc index 7d293f426..cfb224402 100644 --- a/src/xenia/kernel/objects/xthread.cc +++ b/src/xenia/kernel/objects/xthread.cc @@ -232,7 +232,7 @@ static uint32_t __stdcall XThreadStartCallbackWin32(void* param) { X_STATUS XThread::PlatformCreate() { bool suspended = creation_params_.creation_flags & 0x1; thread_handle_ = - CreateThread(NULL, creation_params_.stack_size, + CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)XThreadStartCallbackWin32, this, suspended ? CREATE_SUSPENDED : 0, NULL); if (!thread_handle_) { @@ -273,7 +273,8 @@ X_STATUS XThread::PlatformCreate() { pthread_attr_t attr; pthread_attr_init(&attr); - pthread_attr_setstacksize(&attr, creation_params_.stack_size); + // TODO(benvanik): this shouldn't be necessary + //pthread_attr_setstacksize(&attr, creation_params_.stack_size); int result_code; if (creation_params_.creation_flags & 0x1) {