cosmopolitan/libc/thread
Justine Tunney 6f7d0cb1c3
Pay off more technical debt
This makes breaking changes to add underscores to many non-standard
function names provided by the c library. MODE=tiny is now tinier and
we now use smaller locks that are better for tiny apps in this mode.
Some headers have been renamed to be in the same folder as the build
package, so it'll be easier to know which build dependency is needed.
Certain old misguided interfaces have been removed. Intel intrinsics
headers are now listed in libc/isystem (but not in the amalgamation)
to help further improve open source compatibility. Header complexity
has also been reduced. Lastly, more shell scripts are now available.
2022-09-12 23:36:56 -07:00
..
freebsd.internal.h Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
mktls.c Clean up the TLS code 2022-09-10 11:49:13 -07:00
nsync_counter.c Add *NSYNC mu_test 2022-09-11 18:56:29 -07:00
nsync_cv.c Add *NSYNC mu_test 2022-09-11 18:56:29 -07:00
nsync_debug.c Add *NSYNC mu_test 2022-09-11 18:56:29 -07:00
nsync_mu_wait.c Add *NSYNC mu_test 2022-09-11 18:56:29 -07:00
nsync_note.c Add *NSYNC mu_test 2022-09-11 18:56:29 -07:00
nsync_once.c Add *NSYNC mu_test 2022-09-11 18:56:29 -07:00
nsync_sem_wait.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
nsync_sem_wait_no_note.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
nsync_wait.c Add *NSYNC mu_test 2022-09-11 18:56:29 -07:00
openbsd.internal.h Make fixes and improvements 2022-06-25 21:09:09 -07:00
posixthread.internal.h Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_attr_destroy.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_getdetachstate.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_getguardsize.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_getinheritsched.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_getschedparam.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_getschedpolicy.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_getscope.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_getstack.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_getstacksize.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_init.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_setdetachstate.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_setguardsize.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_setinheritsched.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_setschedparam.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_setschedpolicy.c Rewrite recursive mutex code 2022-09-10 09:18:52 -07:00
pthread_attr_setscope.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_setstack.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_attr_setstacksize.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_barrier_destroy.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_barrier_init.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_barrier_wait.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_barrierattr_destroy.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_barrierattr_getpshared.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_barrierattr_init.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_barrierattr_setpshared.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_cancel.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_cond_broadcast.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_cond_destroy.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_cond_init.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_cond_signal.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_cond_timedwait.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_cond_wait.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_condattr_destroy.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_condattr_getpshared.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_condattr_init.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_condattr_setpshared.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_create.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
pthread_detach.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_equal.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_exit.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
pthread_getaffinity_np.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_getattr_np.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_getname_np.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_getschedparam.c Tidy up the threading implementation 2022-09-10 02:56:25 -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 Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_mutex_destroy.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_mutexattr_destroy.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_mutexattr_getpshared.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_mutexattr_gettype.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_mutexattr_init.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_mutexattr_setpshared.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_mutexattr_settype.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_reschedule.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_rwlock_destroy.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_rwlock_init.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_rwlock_rdlock.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_rwlock_unlock.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_rwlock_wrlock.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_rwlockattr_destroy.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_rwlockattr_getpshared.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_rwlockattr_init.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_rwlockattr_setpshared.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_self.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_setaffinity_np.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_setname_np.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_setschedparam.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_setschedparam_freebsd.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_sigmask.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_spin_destroy.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_spin_init.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_spin_lock.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_spin_trylock.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_spin_unlock.c Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
pthread_ungarbage.c Rewrite recursive mutex code 2022-09-10 09:18:52 -07:00
pthread_zombies.c Rewrite recursive mutex code 2022-09-10 09:18:52 -07:00
README.md Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
spawn.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
spawn.h Make _Thread_local work across platforms 2022-07-10 04:01:17 -07:00
thread.h Pay off more technical debt 2022-09-12 23:36:56 -07:00
thread.mk Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
thread2.h Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
tls.h Pay off more technical debt 2022-09-12 23:36:56 -07:00
tls2.h Tidy up the threading implementation 2022-09-10 02:56:25 -07:00
wait0.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
wait0.internal.h Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
xnu.internal.h Improve quality of raise(), abort(), and tkill() 2022-09-03 20:17:54 -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.