mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +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
|
@ -3,6 +3,7 @@
|
|||
#include "libc/calls/struct/sched_param.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/thread/thread.h"
|
||||
#include "libc/thread/tls.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -61,8 +62,8 @@ struct PosixThread {
|
|||
int tid;
|
||||
int *ctid;
|
||||
char *tls;
|
||||
char *tib;
|
||||
char *altstack;
|
||||
struct CosmoTib *tib;
|
||||
_Atomic(enum PosixThreadStatus) status;
|
||||
jmp_buf exiter;
|
||||
pthread_attr_t attr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue