summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread_sync.c
AgeCommit message (Expand)Author
2012-04-14Add new mutex type, PTHREAD_MUTEX_STRICT_NP which checks for applicationKurt Miller
2012-04-13Use PTHREAD_MUTEX_DEFAULT in static init and mutexattr_init. If theKurt Miller
2012-04-13Per POSIX, PTHREAD_MUTEX_NORMAL type mutexes have undefined behavior forKurt Miller
2012-02-28Our default mutex type is PTHREAD_MUTEX_ERRORCHECK, for which tryingPhilip Guenthe
2012-02-23PTHREAD_MUTEX_NORMAL mutexes are supposed to self-deadlock, not abort.Philip Guenthe
2012-02-23Add pthread_condattr_{get,set}clock(), requested by aja@Philip Guenthe
2012-01-25@($*& Merging patches resulted in a line being duplicated instead ofPhilip Guenthe
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
2012-01-04Split out the semaphore functions.Martin Pieuchot
2011-12-21Split out the pthread_rwlock* and pthread_once() functions from rthread_sync.cPhilip Guenthe
2011-12-21Split out the pthread_mutexattr_* functions from rthread_sync.c toPhilip Guenthe
2011-11-06Move <machine/spinlock.h> into rthread.h; strip out unnecessary #includesPhilip Guenthe
2011-09-22Return the correct errno (EBUSY) when pthread_mutex_trylock() isPhilip Guenthe
2010-04-12Add pthread_rwlock_timed{rd,wr}lock().Philip Guenthe
2009-11-27Convert thrsleep() to an absolute timeout with clockid to eliminate aPhilip Guenthe
2009-11-19pthread_rwlock_wrlock() should increment the count of writers justPhilip Guenthe
2008-10-13use calloc() instead of malloc() and memset()Kevin Lo
2008-02-22fix rwlocks to work with the "initialized" form, from Philip GuentherTed Unangst
2007-06-05_FD_LOCK/UNLOCK() is libpthread specific and not needed for librthread, soKurt Miller
2007-05-25protect against races while initializing static mutexes. okay marc@ tedu@Kurt Miller
2006-01-05add -Wstrict-prototypes -Wmissing-prototypes -Wsign-compareMarco S Hyman
2005-12-31add pthread_mutexattr_gettype.Brad Smith
2005-12-30prototype all the thread syscalls in rthread.h for now.Ted Unangst
2005-12-29the story in pthread_rwlockattr_destory() shoudl be destroyedOtto Moerbeek
2005-12-22more consistently use _rthread prefix for all not meant to be exportedTed Unangst
2005-12-19update copyright to 2005Ted Unangst
2005-12-18initialize all spinlocks to _SPINLOCK_UNLOCKEDTed Unangst
2005-12-14all is made clear: pthread_cond_timedwait takes absolute timeoutsTed Unangst
2005-12-14check for waiters when destroying a mutex or semaphoreTed Unangst
2005-12-13make the mutex unlock and sleep in pthread_cond_wait properly atomicTed Unangst
2005-12-13several silly bugs in pthread_cond_timedwait.Ted Unangst
2005-12-13update thrsleep and thrwakeup - first arg changed from long to void *Ted Unangst
2005-12-13correct implementation of pthread_cond_signal. it doesn't raise the semTed Unangst
2005-12-07add the posix semaphore functions. this lets vlc work.Ted Unangst
2005-12-06add pthread_once. unfortunately, the public pthread.h headerTed Unangst
2005-12-03add userland thread library. incomplete, but functionalTed Unangst