aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread/PosixCond.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-09-13thread/Posix{Cond,Mutex}: don't ues PTHREAD_*_INITIALIZER on NetBSDMax Kellermann1-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.
2013-04-17thread/Cond: add method timed_wait()Max Kellermann1-0/+13
2013-01-10thread/Cond: new wrapper for pthread_cond_t or GCondMax Kellermann1-15/+15
2013-01-10thread/PosixMutex: fix indentMax Kellermann1-13/+13
2013-01-07thread/Mutex: don't use std::mutexMax Kellermann1-31/+24
Use a custom pthread_mutex_t wrapper because std::mutex adds overhead.
2012-01-24refcount: add missing stdbool.h includeMax Kellermann1-0/+1
2011-01-29copyright year 2011Max Kellermann1-1/+1
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-12-31refcount: library for reference countingMax Kellermann1-0/+66