- 08 Jan, 2018 3 commits
-
-
Max Kellermann authored
This attribute shall be used only for IsInside() to make this safe against a race condition described in #188: > There is no requirement on the implementation that the ID of the > created thread be available before the newly created thread starts > executing. http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_create.html): This means that on some pthread implementations (e.g. Haiku), the assert(thread.IsInside()) could fail. Closes #188
-
Max Kellermann authored
This method is only used inside assert().
-
Max Kellermann authored
-
- 07 Jan, 2018 3 commits
-
-
Max Kellermann authored
Use the "==" operator instead of pthread_equal(). This allows us to eliminate two boolean flags which are there to avoid race conditions, and made the thing so fragile that I got tons of (correct) thread sanitizer warnings.
-
Max Kellermann authored
-
Max Kellermann authored
-
- 04 Jan, 2018 1 commit
-
-
Max Kellermann authored
-
- 02 Jan, 2018 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 22 Dec, 2017 1 commit
-
-
Max Kellermann authored
Use the "==" operator instead of pthread_equal(). This allows us to eliminate two boolean flags which are there to avoid race conditions, and made the thing so fragile that I got tons of (correct) thread sanitizer warnings.
-
- 18 Dec, 2017 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
-
- 04 Jun, 2017 1 commit
-
-
Max Kellermann authored
-
- 08 May, 2017 1 commit
-
-
Max Kellermann authored
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
-
- 10 Feb, 2017 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Since we switched to C++ exceptions, there is no code path which returns false.
-
- 17 Jan, 2017 1 commit
-
-
Max Kellermann authored
-
- 03 Jan, 2017 4 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Make sure this deprecated API is not used.
-
Max Kellermann authored
We need purely RAII-style, and this is std::lock_guard.
-
- 29 Dec, 2016 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 28 Dec, 2016 1 commit
-
-
Max Kellermann authored
-
- 19 Sep, 2016 1 commit
-
-
Christian Körner authored
pthread_cond_timedwait() in PosixCond.hxx:timed_wait(PosixMutex...) returns EINVAL, if ts.tv_nsec >= 1E9. In this case, it returns to early. Find attached a patch which fixes this. I chose a compare-subtraction method to keep ts.tv_nsec below 1E9. Another option would be ts.tv_sec += ts.tv_nsec / 1000000000; ts.tv_nsec %= 1000000000; But I guess this takes more time on some ARM processors, which don't support hardware division.
-
- 04 Sep, 2016 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Reduce header clutter.
-
- 17 Jun, 2016 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 02 May, 2016 1 commit
-
-
Max Kellermann authored
-
- 01 Mar, 2016 1 commit
-
-
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.
-
- 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.
-