Added typedef to remove error with _beginthreadex
This commit is contained in:
parent
82556314f6
commit
a889a60546
1 changed files with 2 additions and 1 deletions
|
|
@ -194,7 +194,8 @@ typedef int (*ThreadFunctionType)(void*);
|
|||
static PaError startThread( paTestData* pData, ThreadFunctionType fn )
|
||||
{
|
||||
#ifdef _WIN32
|
||||
pData->threadHandle = (void*)_beginthreadex(NULL, 0, fn, pData, CREATE_SUSPENDED, NULL);
|
||||
typedef unsigned (__stdcall* WinThreadFunctionType)(void*);
|
||||
pData->threadHandle = (void*)_beginthreadex(NULL, 0, (WinThreadFunctionType)fn, pData, CREATE_SUSPENDED, NULL);
|
||||
if (pData->threadHandle == NULL) return paUnanticipatedHostError;
|
||||
|
||||
/* Set file thread to a little higher prio than normal */
|
||||
|
|
|
|||
Loading…
Reference in a new issue