Commit 44d06cd3 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix compile warning/error on Windows.

parent 10ebabc3
...@@ -425,19 +425,13 @@ int TP_pool_win::init() ...@@ -425,19 +425,13 @@ int TP_pool_win::init()
} }
} }
/* TP_POOL_STACK_INFORMATION stackinfo;
Control stack size (OS must be Win7 or later) stackinfo.StackCommit = 0;
*/ stackinfo.StackReserve = (SIZE_T)my_thread_stack_size;
if (SetThreadpoolStackInformation) if (!SetThreadpoolStackInformation(pool, &stackinfo))
{ {
TP_POOL_STACK_INFORMATION stackinfo; tp_log_warning("Can't set threadpool stack size",
stackinfo.StackCommit = 0; "SetThreadpoolStackInformation");
stackinfo.StackReserve = (SIZE_T)my_thread_stack_size;
if (!SetThreadpoolStackInformation(pool, &stackinfo))
{
tp_log_warning("Can't set threadpool stack size",
"SetThreadpoolStackInformation");
}
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment