mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Make more improvements to threading support
- fix rare thread exit race condition on openbsd - pthread_getattr_np() now supplies detached status - child threads may now pthread_join() the main thread - introduce sigandset(), sigorset(), and sigisemptyset() - introduce pthread_cleanup_push() and pthread_cleanup_pop()
This commit is contained in:
parent
38df0a4186
commit
4a6fd3d910
52 changed files with 586 additions and 241 deletions
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_THREAD_TLS_H_
|
||||
#define COSMOPOLITAN_LIBC_THREAD_TLS_H_
|
||||
#include "libc/thread/thread.h"
|
||||
|
||||
#define TLS_ALIGNMENT 64
|
||||
|
||||
|
@ -33,7 +32,7 @@ struct CosmoTib {
|
|||
void *tib_reserved5;
|
||||
void *tib_reserved6;
|
||||
void *tib_reserved7;
|
||||
void *tib_keys[PTHREAD_KEYS_MAX];
|
||||
void *tib_keys[128];
|
||||
};
|
||||
|
||||
extern int __threaded;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue