aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread/PosixMutex.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.
2014-07-02thread/{Mutex,Cond}: relicense to BSD-2Max Kellermann1-2/+2
2014-02-18thread/Posix{Mutex,Cond}: disable "constexpr" on AndroidMax Kellermann1-1/+4
Bionic's pthread declarations are non-literal.
2013-01-10thread/Cond: new wrapper for pthread_cond_t or GCondMax Kellermann1-0/+2
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