summaryrefslogtreecommitdiffstats
path: root/lib/librthread/pthread.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert recent changes to unbreak ports/net/sambajca2017-11-041-1/+3
| | | | | | | | While it is not clear (to me) why that ports ends up with corrupted shared libs, reverting those changes fixes the issue and should allow us to close p2k17 more smoothly. Discussed with a bunch, ok ajacoutot@ guenther@
* Change pthread_cleanup_{push,pop} to macros that store the cleanup infoguenther2017-10-281-3/+1
| | | | | | | | | | | | | | on the stack instead of mallocing the list and move the APIs from libpthread to libc so that they can be used inside libc. Note: the standard was explicitly written to permit/support this "macro with unmatched brace" style and it's what basically everyone else already does. We xor the info with random cookies with a random magic to detect/trip-up overwrites. Major bump to both libc and libpthread due to the API move. ok mpi@
* Move mutex, condvar, and thread-specific data routes, pthread_once, andguenther2017-09-051-23/+1
| | | | | | | | pthread_exit from libpthread to libc, along with low-level bits to support them. Major bump to both libc and libpthread. Requested by libressl team. Ports testing by naddy@ ok kettenis@
* Document PROTO_NORMAL requires matching DEF_{,NON}STDguenther2016-04-151-1/+6
|
* make pthread_barrier_wait behave more like it does on other platforms.tedu2016-04-151-2/+2
| | | | from Kari Tristan Helgason
* Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internalguenther2016-04-021-0/+125
references. Use _thread_pagesize for the semaphore mmap size instead of calling getpagesize() each time. ok beck@