mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-31 17:52:27 +00:00
Improve multithreading
This commit is contained in:
parent
d3167126aa
commit
30afd6ddbb
38 changed files with 752 additions and 174 deletions
|
@ -40,10 +40,8 @@ static errno_t pthread_detach_impl(struct PosixThread *pt) {
|
|||
if (atomic_compare_exchange_weak_explicit(&pt->pt_status, &status,
|
||||
transition, memory_order_release,
|
||||
memory_order_relaxed)) {
|
||||
if (transition == kPosixThreadZombie) {
|
||||
if (transition == kPosixThreadZombie)
|
||||
_pthread_zombify(pt);
|
||||
}
|
||||
_pthread_decimate();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue