Commit 315087be authored by David Reid's avatar David Reid

Add MA_THREAD_DEFAULT_STACK_SIZE for threads.

parent 5fc5c4d4
...@@ -16442,6 +16442,12 @@ static ma_result ma_thread_create(ma_thread* pThread, ma_thread_priority priorit ...@@ -16442,6 +16442,12 @@ static ma_result ma_thread_create(ma_thread* pThread, ma_thread_priority priorit
return MA_OUT_OF_MEMORY; return MA_OUT_OF_MEMORY;
} }
#if defined(MA_THREAD_DEFAULT_STACK_SIZE)
if (stackSize == 0) {
stackSize = MA_THREAD_DEFAULT_STACK_SIZE;
}
#endif
pProxyData->entryProc = entryProc; pProxyData->entryProc = entryProc;
pProxyData->pData = pData; pProxyData->pData = pData;
ma_allocation_callbacks_init_copy(&pProxyData->allocationCallbacks, pAllocationCallbacks); ma_allocation_callbacks_init_copy(&pProxyData->allocationCallbacks, pAllocationCallbacks);
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