- 26 Feb, 2016 1 commit
-
-
Max Kellermann authored
-
- 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 Dec, 2015 1 commit
-
-
Max Kellermann authored
-
- 25 Aug, 2015 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Apparently all other C libraries are not compatible with "constexpr". Those which are not will get a performance penalty, but at least they work at all.
-
- 21 Jan, 2015 1 commit
-
-
Max Kellermann authored
Caused a build failure with uClibc because snprintf() was not available.
-
- 06 Jan, 2015 3 commits
-
-
Max Kellermann authored
NetBSD's pthread_setname_np() prototype is incompatible with the rest of the world, and it requires to pass the string argument as a non-const pointer. Instead of working around this misdesign, I hereby disable the feature on NetBSD.
-
Max Kellermann authored
Add macro HAVE_THREAD_NAME which is set when any method to set the thread name is available. Use that macro in FormatThreadName() instead of just checking for HAVE_PTHREAD_SETNAME_NP.
-
Max Kellermann authored
-
- 01 Jan, 2015 1 commit
-
-
Max Kellermann authored
-
- 08 Dec, 2014 1 commit
-
-
Max Kellermann authored
The "::" to explicitly refer to the global namespace appeared like a good idea in C++, but it breaks with C libraries that implement standard functions using macros (e.g. musl).
-
- 13 Sep, 2014 1 commit
-
-
Max Kellermann authored
On NetBSD, PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER are not compatible with C++11 "constexpr" (see Mantis ticket 0004110). As a workaround, don't ues "constexpr", and use the functions pthread_mutex_init(), pthread_mutex_destroy(), pthread_cond_init() and pthread_cond_destroy() instead. This adds some runtime overhead, but is portable to POSIX implementations that have awkward initializer macros.
-
- 02 Jul, 2014 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 31 May, 2014 1 commit
-
-
Max Kellermann authored
-
- 16 Mar, 2014 1 commit
-
-
Max Kellermann authored
The class does not have any virtual methods, and thus the (debug-only) destructor does not need to be virtual.
-
- 01 Mar, 2014 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 18 Feb, 2014 3 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).
-
Max Kellermann authored
Bionic's pthread declarations are non-literal.
-
- 30 Jan, 2014 1 commit
-
-
Max Kellermann authored
Allows the kernel to combine timer wakeups with other processes, reducing power usage.
-
- 28 Jan, 2014 1 commit
-
-
Max Kellermann authored
pthread_setname_np() doesn't have the "thread" argument on OS X.
-
- 23 Jan, 2014 2 commits
-
-
Max Kellermann authored
For debugging.
-
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.
-
- 13 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 17 Oct, 2013 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Allows forward-declaration.
-
- 15 Oct, 2013 1 commit
-
-
Max Kellermann authored
-
- 10 Aug, 2013 1 commit
-
-
Max Kellermann authored
Remove a GLib dependencies from class EventLoop and DatabaseLock.
-
- 16 Apr, 2013 1 commit
-
-
Max Kellermann authored
-
- 11 Jan, 2013 1 commit
-
-
Max Kellermann authored
Use CRITICAL_SECTION and CONDITION_VARIABLE. This requires Windows Vista or newer. It fixes problems with GLib threading objects that were implicitly created by static constructors before g_thread_init().
-
- 10 Jan, 2013 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Switch WIN32 to this implementation to be able to use condition variables, which is impossible with CriticalSection.
-
Max Kellermann authored
-
- 07 Jan, 2013 1 commit
-
-
Max Kellermann authored
Use a custom pthread_mutex_t wrapper because std::mutex adds overhead.
-
- 04 Jan, 2013 1 commit
-
-
Max Kellermann authored
-