changed CreateThread to _beginthreadex and ExitThread to _endthreadex (related to ticket #84)
This commit is contained in:
parent
7bcec2a83f
commit
cb2dc775ec
1 changed files with 2 additions and 2 deletions
|
|
@ -3010,7 +3010,7 @@ static DWORD WINAPI ProcessingThread(LPVOID pParam)
|
|||
}
|
||||
|
||||
PA_LOGL_;
|
||||
ExitThread(0);
|
||||
_endthreadex(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -3045,7 +3045,7 @@ static PaError StartStream( PaStream *s )
|
|||
PA_DEBUG(("Class ret = %d;",ret));*/
|
||||
|
||||
stream->streamStarted = 1;
|
||||
stream->streamThread = CreateThread(NULL, 0, ProcessingThread, stream, 0, &dwID);
|
||||
stream->streamThread = (HANDLE)_beginthreadex(NULL, 0, ProcessingThread, stream, 0, &dwID);
|
||||
if(stream->streamThread == NULL)
|
||||
{
|
||||
stream->streamStarted = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue