mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 06:12:27 +00:00
Add pthread attributes and other libc functions
This commit is contained in:
parent
d5c9308a43
commit
4339d9f15e
81 changed files with 1111 additions and 428 deletions
|
@ -36,10 +36,10 @@ int pthread_join(pthread_t thread, void **value_ptr) {
|
|||
assert(!"badjoin");
|
||||
return EDEADLK;
|
||||
}
|
||||
_join(&pt->spawn);
|
||||
pthread_wait(pt);
|
||||
if (value_ptr) {
|
||||
*value_ptr = pt->rc;
|
||||
}
|
||||
free(pt);
|
||||
pthread_free(pt);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue