Create native threads with default stack size.

This commit is contained in:
gibbed 2015-05-14 17:00:15 -05:00
parent df600a105a
commit 283f5269d5
1 changed files with 3 additions and 2 deletions

View File

@ -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) {