cosmopolitan/libc/thread
Justine Tunney 3f0bcdc3ef
Improve cancellations, randomness, and time
- Exhaustively document cancellation points
- Rename SIGCANCEL to SIGTHR just like BSDs
- Further improve POSIX thread cancellations
- Ensure asynchronous cancellations work correctly
- Elevate the quality of getrandom() and getentropy()
- Make futexes cancel correctly on OpenBSD 6.x and 7.x
- Add reboot.com and shutdown.com to examples directory
- Remove underscore prefix from awesome timespec_*() APIs
- Create assertions that help verify our cancellation points
- Remove bad timespec APIs (cmp generalizes eq/ne/gt/gte/lt/lte)
2022-11-05 23:45:32 -07:00
..
freebsd.internal.h Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
mktls.c Make more threading improvements 2022-11-01 23:28:26 -07:00
openbsd.internal.h Make fixes and improvements 2022-06-25 21:09:09 -07:00
posixthread.internal.h Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
pthread_atfork.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
pthread_attr_destroy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_getdetachstate.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_getguardsize.c Make more improvements to threading support 2022-10-09 00:08:47 -07:00
pthread_attr_getinheritsched.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_getschedparam.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_getschedpolicy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_getscope.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_getstack.c Make more improvements to threading support 2022-10-09 00:08:47 -07:00
pthread_attr_getstacksize.c Make more improvements to threading support 2022-10-09 00:08:47 -07:00
pthread_attr_init.c Make more improvements to threading support 2022-10-09 00:08:47 -07:00
pthread_attr_setdetachstate.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_setguardsize.c Make more improvements to threading support 2022-10-09 00:08:47 -07:00
pthread_attr_setinheritsched.c Fix bugs and make code tinier 2022-10-09 23:21:34 -07:00
pthread_attr_setschedparam.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_setschedpolicy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_setscope.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_attr_setstack.c Make more improvements to threading support 2022-10-09 00:08:47 -07:00
pthread_attr_setstacksize.c Make more improvements to threading support 2022-10-09 00:08:47 -07:00
pthread_barrier_destroy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_barrier_init.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_barrier_wait.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_barrierattr_destroy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_barrierattr_getpshared.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_barrierattr_init.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_barrierattr_setpshared.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_cancel.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
pthread_cleanup.c Make more threading improvements 2022-11-01 23:28:26 -07:00
pthread_cond_broadcast.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_cond_destroy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_cond_init.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_cond_signal.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_cond_timedwait.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
pthread_cond_wait.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_condattr_destroy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_condattr_getpshared.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_condattr_init.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_condattr_setpshared.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_create.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_detach.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_equal.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
pthread_exit.c Make more threading improvements 2022-11-01 23:28:26 -07:00
pthread_getaffinity_np.c Improve the affinity system calls 2022-10-06 15:08:29 -07:00
pthread_getattr_np.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_getname_np.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_getschedparam.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_getthreadid_np.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_getunique_np.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_join.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_kill.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
pthread_mutex_destroy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_mutexattr_destroy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_mutexattr_getpshared.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_mutexattr_gettype.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_mutexattr_init.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_mutexattr_setpshared.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_mutexattr_settype.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_reschedule.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_rwlock_destroy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_rwlock_init.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_rwlock_rdlock.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_rwlock_unlock.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_rwlock_wrlock.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_rwlockattr_destroy.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_rwlockattr_getpshared.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_rwlockattr_init.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_rwlockattr_setpshared.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_self.c Make fixes and improvements 2022-10-19 07:19:19 -07:00
pthread_setaffinity_np.c Improve the affinity system calls 2022-10-06 15:08:29 -07:00
pthread_setcanceltype.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
pthread_setname_np.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_setschedparam.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_setschedparam_freebsd.c Add sys_ prefix to unwrapped system calls 2022-09-13 11:20:35 -07:00
pthread_setschedprio.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_sigmask.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
pthread_spin_destroy.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_spin_init.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_spin_lock.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_spin_trylock.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_spin_unlock.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pthread_ungarbage.c Make more improvements to threading support 2022-10-09 00:08:47 -07:00
pthread_zombies.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
README.md Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
sem_destroy.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
sem_getvalue.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
sem_init.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
sem_open.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
sem_path_np.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
sem_post.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
sem_timedwait.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
sem_trywait.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
sem_wait.c Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
semaphore.h Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
spawn.c Clean up threading code some more 2022-09-13 20:17:34 -07:00
spawn.h Clean up threading code some more 2022-09-13 20:17:34 -07:00
thread.h Implement support for POSIX thread cancellations 2022-11-04 01:04:43 -07:00
thread.mk Implement support for POSIX thread cancellations 2022-11-04 01:04:43 -07:00
thread2.h Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
tls.h Make more threading improvements 2022-11-01 23:28:26 -07:00
tls2.h Elevate Windows production worthiness 2022-10-13 13:44:41 -07:00
wait0.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
wait0.internal.h Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
xnu.internal.h Remove a bunch of stuff that shouldn't be in docs 2022-09-20 02:57:46 -07:00

Cosmpolitan POSIX Threads Library

Cosmopolitan Libc implements threading as it is written in The Open Group Base Specifications Issue 7, 2018 edition IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008) in addition to GNU extensions.