mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Graduate some clock_gettime() constants to #define
- CLOCK_THREAD_CPUTIME_ID - CLOCK_PROCESS_CPUTIME_ID Cosmo now supports the above constants universally across supported OSes therefore it's now safe to let programs detect their presence w/ #ifdefs
This commit is contained in:
parent
c83ec5fdd9
commit
3de6632be6
4 changed files with 8 additions and 7 deletions
|
@ -118,7 +118,7 @@ void _pthread_decimate(bool annihilation_only) {
|
|||
if (status != kPosixThreadZombie)
|
||||
break; // zombies only exist at the end of the linked list
|
||||
if (atomic_load_explicit(&pt->tib->tib_tid, memory_order_acquire))
|
||||
continue; // undead thread should that'll stop existing soon
|
||||
continue; // undead thread that should stop existing soon
|
||||
dll_remove(&_pthread_list, e);
|
||||
dll_make_first(&list, e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue