Skip to content

Commit 8abcc27

Browse files
committed
Removed timeout in SDL_RunOnMainThread()
Fixes #12923
1 parent ef54c3b commit 8abcc27

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/events/SDL_events.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -1400,9 +1400,7 @@ bool SDL_RunOnMainThread(SDL_MainThreadCallback callback, void *userdata, bool w
14001400
return true;
14011401
}
14021402

1403-
// Maximum wait of 30 seconds to prevent deadlocking forever
1404-
const Sint32 MAX_CALLBACK_WAIT = 30 * 1000;
1405-
SDL_WaitSemaphoreTimeout(entry->semaphore, MAX_CALLBACK_WAIT);
1403+
SDL_WaitSemaphore(entry->semaphore);
14061404

14071405
switch (SDL_GetAtomicInt(&entry->state)) {
14081406
case SDL_MAIN_CALLBACK_COMPLETE:

0 commit comments

Comments
 (0)