Improve multithreading

This commit is contained in:
Justine Tunney 2024-07-21 06:41:30 -07:00
parent d3167126aa
commit 30afd6ddbb
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
38 changed files with 752 additions and 174 deletions

View file

@ -76,7 +76,7 @@ void CheckForMemoryLeaks(void) {
// validate usage of this api
if (_weaken(_pthread_decimate))
_weaken(_pthread_decimate)();
_weaken(_pthread_decimate)(false);
if (!pthread_orphan_np())
kprintf("warning: called CheckForMemoryLeaks() from non-orphaned thread\n");