mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-19 03:08:27 +00:00
Rename SDL_SetThreadPriority() to SDL_SetCurrentThreadPriority()
Fixes https://github.com/libsdl-org/SDL/issues/11055
This commit is contained in:
parent
69196ab30d
commit
fe2880fcda
17 changed files with 30 additions and 22 deletions
|
@ -3002,7 +3002,7 @@ extern "C" {
|
|||
* - "1": Force SDL_THREAD_PRIORITY_TIME_CRITICAL to a realtime scheduling
|
||||
* policy
|
||||
*
|
||||
* This hint should be set before calling SDL_SetThreadPriority()
|
||||
* This hint should be set before calling SDL_SetCurrentThreadPriority()
|
||||
*
|
||||
* \since This hint is available since SDL 3.0.0.
|
||||
*/
|
||||
|
@ -3010,9 +3010,9 @@ extern "C" {
|
|||
|
||||
/**
|
||||
* A string specifying additional information to use with
|
||||
* SDL_SetThreadPriority.
|
||||
* SDL_SetCurrentThreadPriority.
|
||||
*
|
||||
* By default SDL_SetThreadPriority will make appropriate system changes in
|
||||
* By default SDL_SetCurrentThreadPriority will make appropriate system changes in
|
||||
* order to apply a thread priority. For example on systems using pthreads the
|
||||
* scheduler policy is changed automatically to a policy that works well with
|
||||
* a given priority. Code which has specific requirements can override SDL's
|
||||
|
@ -3023,9 +3023,9 @@ extern "C" {
|
|||
*
|
||||
* On Linux, the kernel may send SIGKILL to realtime tasks which exceed the
|
||||
* distro configured execution budget for rtkit. This budget can be queried
|
||||
* through RLIMIT_RTTIME after calling SDL_SetThreadPriority().
|
||||
* through RLIMIT_RTTIME after calling SDL_SetCurrentThreadPriority().
|
||||
*
|
||||
* This hint should be set before calling SDL_SetThreadPriority()
|
||||
* This hint should be set before calling SDL_SetCurrentThreadPriority()
|
||||
*
|
||||
* \since This hint is available since SDL 3.0.0.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue