- 09 Feb, 2018 2 commits
-
-
Max Kellermann authored
There is a POSIX definition for sched_setscheduler(), but Linux does not implement that; instead of changing the process's scheduler, it only affects one thread. This has caused some confusion among application developers and C library developers. While glibc implements Linux semantics, Musl has made their sched_setscheduler() function an always-failing no-op, causing the error message "sched_setscheduler failed: Function not implemented". http://git.musl-libc.org/cgit/musl/commit/src/sched/sched_setscheduler.c?id=1e21e78bf7a5c24c217446d8760be7b7188711c2 Instead of relying on the C library which may be unreliable here, we now roll our own system call wrapper. Closes #218
-
Max Kellermann authored
Juse in cas glibc gets a wrapper for the system call which would then conflict with ours.
-
- 04 Jan, 2018 1 commit
-
-
Max Kellermann authored
-
- 12 Dec, 2017 1 commit
-
-
Max Kellermann authored
Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169
-
- 26 Nov, 2017 1 commit
-
-
Max Kellermann authored
-
- 17 Jan, 2017 1 commit
-
-
Max Kellermann authored
-
- 04 Sep, 2016 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Reduce header clutter.
-
- 19 Feb, 2016 1 commit
-
-
Christian Halaszovich authored
This only applies to linux systems. Here, sched_setscheduler() is called to get realtime scheduling. With this patch, the return value of this function is now checked and a warning / error message is generated if it fails.
-
- 31 May, 2014 1 commit
-
-
Max Kellermann authored
-
- 18 Feb, 2014 2 commits
-
-
Max Kellermann authored
Bionic doesn't have the SYS_* macros.
-
Max Kellermann authored
Use it if it exists, but don't insist if the C library is poor (e.g. Bionic/Android).
-
- 23 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 14 Jan, 2014 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
The update thread should not affect the rest of the system, therefore set "idle" priority, and let it only run when nobody else is using the resources.
-