mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 02:38:31 +00:00
Make futexes cancellable by pthreads
This commit is contained in:
parent
2278327eba
commit
022536cab6
101 changed files with 627 additions and 391 deletions
|
@ -44,6 +44,7 @@ void _pthread_zombies_add(struct PosixThread *pt) {
|
|||
}
|
||||
|
||||
static void _pthread_zombies_collect(struct Zombie *z) {
|
||||
// TODO(jart): We need a trywait() op here to avoid cancellation.
|
||||
_pthread_wait(z->pt);
|
||||
_pthread_free(z->pt);
|
||||
free(z);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue