Rename SDL_SetThreadPriority() to SDL_SetCurrentThreadPriority()

Fixes https://github.com/libsdl-org/SDL/issues/11055
This commit is contained in:
Sam Lantinga
2024-10-04 08:57:03 -07:00
parent 69196ab30d
commit fe2880fcda
17 changed files with 30 additions and 22 deletions

View File

@@ -62,7 +62,7 @@ static int SDLCALL SDL_ANDROID_SensorThread(void *data)
ASensorEvent event;
struct android_poll_source *source;
SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
SDL_SetCurrentThreadPriority(SDL_THREAD_PRIORITY_HIGH);
SDL_sensor_looper = ALooper_prepare(ALOOPER_PREPARE_ALLOW_NON_CALLBACKS);
SDL_SignalSemaphore(ctx->sem);