aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread/PosixCond.hxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* thread/Posix{Mutex,Cond}: use "constexpr" only with glibcMax Kellermann2015-08-251-8/+8
| | | | | | 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.
* Merge branch 'v0.18.x'Max Kellermann2014-09-241-3/+14
|\
| * thread/Posix{Cond,Mutex}: don't ues PTHREAD_*_INITIALIZER on NetBSDMax Kellermann2014-09-131-0/+14
| | | | | | | | | | | | | | | | | | | | 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.
* | thread/{Mutex,Cond}: relicense to BSD-2Max Kellermann2014-07-021-2/+2
| |
* | thread/Posix{Mutex,Cond}: disable "constexpr" on AndroidMax Kellermann2014-02-181-1/+4
|/ | | | Bionic's pthread declarations are non-literal.
* thread/Cond: add method timed_wait()Max Kellermann2013-04-171-0/+13
|
* thread/Cond: new wrapper for pthread_cond_t or GCondMax Kellermann2013-01-101-0/+60