summaryrefslogtreecommitdiff
path: root/src/thread/pthread_mutex_timedlock.c
AgeCommit message (Collapse)AuthorLines
2011-08-02avoid accessing mutex memory after atomic unlockRich Felker-7/+15
this change is needed to fix a race condition and ensure that it's possible to unlock and destroy or unmap the mutex as soon as pthread_mutex_lock succeeds. POSIX explicitly gives such an example in the rationale and requires an implementation to allow such usage.
2011-03-17implement robust mutexesRich Felker-1/+2
some of this code should be cleaned up, e.g. using macros for some of the bit flags, masks, etc. nonetheless, the code is believed to be working and correct at this point.
2011-02-17reorganize pthread data structures and move the definitions to alltypes.hRich Felker-4/+4
this allows sys/types.h to provide the pthread types, as required by POSIX. this design also facilitates forcing ABI-compatible sizes in the arch-specific alltypes.h, while eliminating the need for developers changing the internals of the pthread types to poke around with arch-specific headers they may not be able to test.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+15