summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread_mutex.c
AgeCommit message (Expand)Author
2020-06-11Adjust memory barriers.ad
2020-06-10- Make pthread_condvar and pthread_mutex work on the stack rather than inad
2020-06-03Deal with a couple of problems with threads being awoken early due toad
2020-06-01In the interests of reliability simplify waiter handling more and redoad
2020-05-16- Try to eliminate a hang in "parked" I've been seeing while stress testing.ad
2020-02-16Revert "Enhance the pthread(3) + malloc(3) init model"kamil
2020-02-15Enhance the pthread(3) + malloc(3) init modelkamil
2020-02-01Revert previouskamil
2020-02-01Remove 'ifdef 0' hackskamil
2020-01-31Refactor libpthread checks for invalid argumentskamil
2020-01-31In the same spirit as the previous pthread_mutex_init change for jemalloc,christos
2020-01-29Use pthread_mutexattr_t and pthread_mutex_t magic fieldskamil
2020-01-29Mark destroyed pthread_mutexattr_t as deadkamil
2020-01-25Adjustment to previous: don't call _lwp_unpark_all() with nwaiters == 0.ad
2020-01-25pthread__mutex_unlock_slow(): ignore the DEFERRED bit. It's only purposead
2020-01-13Rip out some very ambitious optimisations around pthread_mutex that aread
2019-03-05Jemalloc initializes mutexes before we become threaded and expects to usechristos
2017-12-08Deal with more lwp_park() timestamp unconstingkre
2016-10-31Don't spin if we already own the mutex, otherwise we will get stuck spinningchristos
2016-07-17Use anonymous union for ptm_ceiling and old __pthread_spin_t field toskrll
2016-07-16KNFskrll
2016-07-03GSoC 2016 Charles Cui: Implement thread priority protection based on workchristos
2014-02-03pthread__mutex_lock_slow: fix the handling of a potential race with thermind
2014-01-31remove compatibility code for handling CLOCK_MONOTONIC and handle it in thechristos
2014-01-31PR/44756: Sad Clouds: Prevent leakage of errno = ESRCH from _lwp_park. Thischristos
2013-03-21- Allow libpthread to be dlopened again, by providing libc stubs to libpthread.christos
2013-03-06add commentsyamt
2012-08-16Add a pthread__smt_wake and add support for it on arm along withmatt
2012-03-13Move the pthread_once alias where it belongs.joerg
2012-03-12Move pthread_once implementation into a separate file, it doesn't dependjoerg
2008-08-02Change pthread_mutex_t to use the amount of space as and be congruent tomatt
2008-05-25PR lib/38741 priority inversion in libpthread breaks apps that usead
2008-05-25Add some general comments about the mutex implementation.ad
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-03-07pthread__mutex_lock_slow:ad
2008-02-23Fix pthread_mutex_trylock() for recursive mutexes. PR lib/38087.ad
2008-02-14Adjust mutex/rwlock definitions to match reality now that there is onlyad
2008-02-10- Remove libpthread's atomic ops.ad
2008-01-25Make this compile after Andrew's fix (remove now-unused variables)rafal
2008-01-25pthread_mutex_lock_slow: remove "deliberate deadlock" code that's notad
2008-01-08add missing static decls.christos
2008-01-05machine/lock.h, not sys/lock.had
2007-12-24- Fix pthread_rwlock_trywrlock() which was broken.ad
2007-11-19Remove the debuglog stuff. ktrace is more useful now.ad
2007-11-13For PR bin/37347:ad
2007-09-13Add a per-mutex deferred wakeup flag so that threads doing something likead
2007-09-11Fix inverted test after merge of nick-csl-alignment.ad
2007-09-10Merge nick-csl-alignment.skrll
2007-09-08- Get rid of self->pt_mutexhint and use pthread__mutex_owned() instead.ad
2007-09-07- Don't take the mutex's spinlock (ptr_interlock) in pthread_cond_wait().ad