Add thread priority API

Expose an API to change the priority of the current thread.
This commit is contained in:
Romain Vimont
2023-03-08 21:34:42 +01:00
parent 4a25f3e53b
commit 5ee59e0f13
3 changed files with 47 additions and 0 deletions

View File

@@ -54,6 +54,10 @@
# define SCRCPY_SDL_HAS_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR
#endif
#if SDL_VERSION_ATLEAST(2, 0, 16)
# define SCRCPY_SDL_HAS_THREAD_PRIORITY_TIME_CRITICAL
#endif
#ifndef HAVE_STRDUP
char *strdup(const char *s);
#endif