static void* PV_NativeFrameThreadProc(void* arg)
{
    if (theFrameProc)
	{
	    (*theFrameProc)(PV_CreateAudioContext());
	    PV_DestroyAudioContext();
	}
    else
	{
	    DEBUG_STR("PV_NativeFrameThreadProc() called when thread supposed to be dead!");
	}
    return NULL;
}
Exemple #2
0
static THREAD_CALL PV_NativeFrameThreadProc(LPVOID lpv)
{
    lpv;	// eliminate unreferenced-parameter warning

    if (theFrameProc)
	{
	    (*theFrameProc)(PV_CreateAudioContext());
	    PV_DestroyAudioContext();
	}
    else
	{
	    DEBUG_STR("PV_NativeFrameThreadProc() called when thread supposed to be dead!");
	}
#if USE_WIN32_THREAD_API
    ExitThread(0);
#else
    _endthreadex(0);
#endif
    return 0;
}