mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00
properly reset 3D thread state
This commit is contained in:
@ -109,6 +109,11 @@ void Semaphore_Free(void* sema)
|
||||
delete (wxSemaphore*)sema;
|
||||
}
|
||||
|
||||
void Semaphore_Reset(void* sema)
|
||||
{
|
||||
while (((wxSemaphore*)sema)->TryWait() == wxSEMA_NO_ERROR);
|
||||
}
|
||||
|
||||
void Semaphore_Wait(void* sema)
|
||||
{
|
||||
((wxSemaphore*)sema)->Wait();
|
||||
|
Reference in New Issue
Block a user