Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | thread/Posix{Cond,Mutex}: don't ues PTHREAD_*_INITIALIZER on NetBSD | Max Kellermann | 2014-09-13 | 1 | -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/Cond: new wrapper for pthread_cond_t or GCond | Max Kellermann | 2013-01-10 | 1 | -0/+2 |
| | |||||
* | thread/PosixMutex: fix indent | Max Kellermann | 2013-01-10 | 1 | -13/+13 |
| | |||||
* | thread/Mutex: don't use std::mutex | Max Kellermann | 2013-01-07 | 1 | -0/+60 |
Use a custom pthread_mutex_t wrapper because std::mutex adds overhead. |