mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-18 09:18:14 +00:00
Fixed deadlock when shutting down the Windows joystick system
This commit is contained in:
@@ -130,6 +130,12 @@ SDL_JoysticksInitialized(void)
|
||||
return SDL_joysticks_initialized;
|
||||
}
|
||||
|
||||
SDL_bool
|
||||
SDL_JoysticksQuitting(void)
|
||||
{
|
||||
return SDL_joysticks_quitting;
|
||||
}
|
||||
|
||||
void
|
||||
SDL_LockJoysticks(void)
|
||||
{
|
||||
@@ -159,18 +165,12 @@ SDL_UnlockJoysticks(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
SDL_AssertJoysticksLocked(void)
|
||||
{
|
||||
SDL_assert(SDL_joysticks_locked > 0);
|
||||
}
|
||||
|
||||
SDL_bool
|
||||
SDL_JoysticksQuitting(void)
|
||||
{
|
||||
return SDL_joysticks_quitting;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the driver and device index for an API device index
|
||||
* This should be called while the joystick lock is held, to prevent another thread from updating the list
|
||||
|
Reference in New Issue
Block a user