• Max Kellermann's avatar
    thread/Posix{Cond,Mutex}: don't ues PTHREAD_*_INITIALIZER on NetBSD · e304d0f8
    Max Kellermann authored
    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.
    e304d0f8
Name
Last commit
Last update
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
mpd.service.in Loading commit data...
valgrind.suppressions Loading commit data...