cosmopolitan/libc/thread
Justine Tunney b1d9d11be1 Simplify TLS and reduce startup latency
This change simplifies the thread-local storage support code. On Windows
and Mac OS X the startup latency of __enable_tls() has been reduced from
30ms to 1ms. On Windows, TLS memory accesses will now go much faster due
to better self-modifying code that prevents a function call and acquires
our thread information block pointer in a single instruction.
2022-07-18 04:10:54 -07:00
..
attr.c Refactor some code 2022-05-28 14:09:21 -07:00
ctor.S Make _Thread_local work across platforms 2022-07-10 04:01:17 -07:00
freebsd.internal.h Refactor some code 2022-05-28 14:09:21 -07:00
internal.h Make _Thread_local more seamlessly working 2022-07-10 08:27:50 -07:00
key.c Make _Thread_local more seamlessly working 2022-07-10 08:27:50 -07:00
mktls.c Make _Thread_local work across platforms 2022-07-10 04:01:17 -07:00
openbsd.internal.h Make fixes and improvements 2022-06-25 21:09:09 -07:00
pthread_getspecific.c Make _Thread_local more seamlessly working 2022-07-10 08:27:50 -07:00
pthread_key_create.c Make _Thread_local more seamlessly working 2022-07-10 08:27:50 -07:00
pthread_key_delete.c Add pthread tls api 2022-06-22 07:08:17 -07:00
pthread_key_destruct.c Perform some code cleanup 2022-06-23 10:21:07 -07:00
pthread_setspecific.c Make _Thread_local more seamlessly working 2022-07-10 08:27:50 -07:00
self.c Simplify TLS and reduce startup latency 2022-07-18 04:10:54 -07:00
sem.c Make _Thread_local more seamlessly working 2022-07-10 08:27:50 -07:00
spawn.c Simplify TLS and reduce startup latency 2022-07-18 04:10:54 -07:00
spawn.h Make _Thread_local work across platforms 2022-07-10 04:01:17 -07:00
thread.h Make some touchups 2022-07-15 18:07:34 -07:00
thread.mk Make improvements 2022-05-28 00:28:09 -07:00
wait.c Make some quick fixes and cleanup 2022-06-26 02:58:36 -07:00
xnu.internal.h Get threads working on all platforms 2022-05-13 03:59:09 -07:00