In article <20160509083422.gb7...@britannica.bec.de>, Joerg Sonnenberger <jo...@bec.de> wrote: >On Mon, May 09, 2016 at 12:37:55AM -0700, Charles Cui wrote: >> pthreads: >> PTHREAD_PRIO_INHERIT (freebsd) >> PTHREAD_PRIO_NONE (freebsd) >> PTHREAD_PRIO_PROTECT (freebsd) >> PTHREAD_STACK_MIN (freebsd) >> pthread_barrierattr_getpshared (freebsd) >> pthread_barrierattr_setpshared (freebsd) >> pthread_mutexattr_setpshared (freebsd) >> pthread_mutexattr_getpshared (freebsd) >> pthread_condattr_setpshared (freebsd) >> pthread_condattr_getpshared (freebsd) >> pthread_condattr_getclock (freebsd) >> pthread_mutexattr_getprioceiling (freebsd) >> pthread_mutexattr_setprioceiling (freebsd) >> pthread_mutexattr_getprotocol (freebsd) >> pthread_mutexattr_setprotocol (freebsd) >> pthread_rwlockattr_getpshared (freebsd) >> pthread_rwlockattr_setpshared (freebsd) >> pthread_mutex_getprioceiling (freebsd) >> pthread_mutex_timedlock (freebsd) > >The pshared stuff is almost a lost cause with the current mutex >implementation. Sadly, POSIX decided to standardize something which >essentially only works reasonably with futexes :(
Should we implement futexes then? christos