The sensor and joystick instance ID generator isn't guarded by a lock.
This commit is contained in:
parent
aee4862958
commit
3a47fb7208
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ static SDL_AtomicInt SDL_sensor_lock_pending;
|
|||
static int SDL_sensors_locked;
|
||||
static SDL_bool SDL_sensors_initialized;
|
||||
static SDL_Sensor *SDL_sensors SDL_GUARDED_BY(SDL_sensor_lock) = NULL;
|
||||
static SDL_AtomicInt SDL_last_sensor_instance_id SDL_GUARDED_BY(SDL_sensor_lock);
|
||||
static SDL_AtomicInt SDL_last_sensor_instance_id;
|
||||
static char SDL_sensor_magic;
|
||||
|
||||
#define CHECK_SENSOR_MAGIC(sensor, retval) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue