mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Clean up threading code some more
This commit is contained in:
parent
6a3330d7c9
commit
654ceaba7d
28 changed files with 119 additions and 134 deletions
|
@ -28,7 +28,7 @@ void _pthread_key_destruct(void *key[PTHREAD_KEYS_MAX]) {
|
|||
pthread_key_dtor dtor;
|
||||
if (!__tls_enabled) return;
|
||||
pthread_spin_lock(&_pthread_keys_lock);
|
||||
if (!key) key = _pthread_keys;
|
||||
if (!key) key = __get_tls()->tib_keys;
|
||||
StartOver:
|
||||
for (i = 0; i < (PTHREAD_KEYS_MAX + 63) / 64; ++i) {
|
||||
x = _pthread_key_usage[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue