mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
[WIP] Threading phase 2 (#301)
* Exponential back-off * Removed "native" specifier * Abstract away Futex for cthread * Complete setup for TLS (including main thread)
This commit is contained in:
parent
660ff56d40
commit
45a7435788
11 changed files with 249 additions and 78 deletions
|
@ -12,6 +12,7 @@ enum cthread_state {
|
|||
cthread_joining = 1,
|
||||
cthread_finished = 2,
|
||||
cthread_detached = 4,
|
||||
cthread_main = 127,
|
||||
};
|
||||
|
||||
struct cthread_descriptor_t {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue