SDL/include
Sam Lantinga 07eae7d670 Fix process randomly getting killed when SDL_THREAD_PRIORITY_HIGH/TIME_CRITICAL is set
When we request realtime priority from rtkit, we have a rttime limit. If we exceed
that limit, the kernel will send SIGKILL to the process to terminate it.

This isn't something that most high priority processes will want, only processes
that selectively opt into SCHED_RR/FIFO through SDL_HINT_THREAD_PRIORITY_POLICY
should be subject to this level of scrutiny.

This change:
  * Switches non-apple posix OSs to use SCHED_OTHER instead of SCHED_RR
for SDL_THREAD_PRIORITY_HIGH/SDL_THREAD_PRIORITY_TIME_CRITICAL.
  * Fixes using a hardcoded RLIMIT_RTTIME, instead queries it from rtkit
  * Only sets RLIMIT_RTTIME for MakeRealtime rtkit requests
  * Adds a note regarding the possible SIGKILL with SDL_HINT_THREAD_PRIORITY_POLICY
  * Introduces SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL to allow apps to acquire realtime scheduling policies on Linux
2020-11-11 08:47:18 -08:00
..
SDL.h Removed SDL_AndroidOpenURL, added SDL_OpenURL. 2020-10-05 11:30:33 -04:00
SDL_assert.h assert: Implement SDL_TriggerBreakpoint for Apple ARM hardware. 2020-07-16 04:43:08 -04:00
SDL_atomic.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_audio.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_bits.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_blendmode.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_clipboard.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_config.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_config.h.cmake build: fix / update sensors (windows) configuration 2020-10-12 01:02:28 +03:00
SDL_config.h.in build: fix / update sensors (windows) configuration 2020-10-12 01:02:28 +03:00
SDL_config_android.h Enable the virtual joystick API by default 2020-04-13 08:18:16 -07:00
SDL_config_iphoneos.h Be explicit about mapping the new game controller paddle buttons 2020-11-07 02:22:15 -08:00
SDL_config_macosx.h Enable the virtual joystick API by default 2020-04-13 08:18:16 -07:00
SDL_config_minimal.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_config_os2.h os2: can build with libsamplerate support if wanted to. 2020-10-24 20:12:50 +03:00
SDL_config_pandora.h Enable the virtual joystick API by default 2020-04-13 08:18:16 -07:00
SDL_config_psp.h Enable the virtual joystick API by default 2020-04-13 08:18:16 -07:00
SDL_config_windows.h build: fix / update sensors (windows) configuration 2020-10-12 01:02:28 +03:00
SDL_config_winrt.h Enable the virtual joystick API by default 2020-04-13 08:18:16 -07:00
SDL_config_wiz.h Enable the virtual joystick API by default 2020-04-13 08:18:16 -07:00
SDL_copying.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_cpuinfo.h SDL_cpuinfo.h: add missing const to size parameter of SDL_SIMDRealloc() 2020-10-13 05:20:00 +03:00
SDL_egl.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_endian.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_error.h Added SDL_GetErrorMsg() to get the error message in a thread-safe way 2020-03-13 21:28:09 -07:00
SDL_events.h locale: Implemented SDL_GetPreferredLocales(). 2020-05-04 02:27:29 -04:00
SDL_filesystem.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_gamecontroller.h Fixed typo in the documentation 2020-11-09 10:29:10 -08:00
SDL_gesture.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_haptic.h Improvement for bug 3446 - The haptic API does not allow to select the direction axes 2020-05-04 13:17:43 -07:00
SDL_hints.h Fix process randomly getting killed when SDL_THREAD_PRIORITY_HIGH/TIME_CRITICAL is set 2020-11-11 08:47:18 -08:00
SDL_joystick.h Added SDL_JoystickHasLED 2020-11-05 11:07:54 -08:00
SDL_keyboard.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_keycode.h Fixed bug 5242 - KMOD_* flags unnecessarily macros; breaks OGRE 2020-08-10 08:42:35 -07:00
SDL_loadso.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_locale.h locale: Implemented SDL_GetPreferredLocales(). 2020-05-04 02:27:29 -04:00
SDL_log.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_main.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_messagebox.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_metal.h metal: Added some support interfaces to Apple's Metal API (thanks, Caleb!). 2020-04-10 00:37:35 -04:00
SDL_misc.h Removed SDL_AndroidOpenURL, added SDL_OpenURL. 2020-10-05 11:30:33 -04:00
SDL_mouse.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_mutex.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_name.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_opengl.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_opengl_glext.h Don't have Windows headers define min/max, in case they're defined by application code 2019-09-11 15:08:37 -07:00
SDL_opengles.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_opengles2.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_opengles2_gl2.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_gl2ext.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_gl2platform.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_khrplatform.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_pixels.h Fixed bug 4938 - Suggestion: rename SDL_PIXELFORMAT_BGR888 to SDL_PIXELFORMAT_XBGR8888 2020-06-12 10:30:46 -07:00
SDL_platform.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_power.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_quit.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_rect.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_render.h Clarified that the clip rectangle is defined relative to the viewport, and added a clip test to testviewport.c 2020-03-08 21:02:40 -07:00
SDL_revision.h revert files I didnt mean to commit! 2017-09-29 10:15:44 -07:00
SDL_rwops.h Fixed bug 4297 - Android StrictMode policy. Remove APK expansion support 2020-08-17 19:50:20 +02:00
SDL_scancode.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_sensor.h First pass at Windows sensor implementation 2020-04-08 08:34:27 -07:00
SDL_shape.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_stdinc.h SDL_stdinc.h: define _DARWIN_C_SOURCE on macOS for memset_pattern4() 2020-10-29 20:00:20 +03:00
SDL_surface.h Fixed bug 5304 - add SDL_HasSurfaceRLE() (Thanks Rene Dudfield and Dan Lawrence) 2020-10-18 09:52:56 +02:00
SDL_system.h Added a note about Android 11 2020-10-16 12:35:30 -07:00
SDL_syswm.h os2: integrate the port into main tree. 2020-10-14 23:01:06 +03:00
SDL_test.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_assert.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_common.h test: Reimplemented SDLTest_CommonUsage() to restore binary compatibility. 2020-02-12 13:09:38 -05:00
SDL_test_compare.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_crc32.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_font.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_fuzzer.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_harness.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_images.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_log.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_md5.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_memory.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_test_random.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_thread.h Make some changes to SDL_SetThreadPriority to try and have SDL transparently handle more of the work. 2020-05-26 13:19:19 -07:00
SDL_timer.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_touch.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_types.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_version.h Backed out changeset 51622f74dc85 2020-03-10 18:35:31 -07:00
SDL_video.h minor whitespace fix 2020-10-09 03:28:30 +03:00
SDL_vulkan.h Fixed whitespace in SDL_vulkan.h 2020-06-02 16:59:54 -07:00
begin_code.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
close_code.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00