ditch semaphores in thread pool in favor of barriers

This commit is contained in:
Nikita Smith
2026-06-19 20:12:26 -07:00
committed by Ryan Fleury
parent 6ea9bfc5a3
commit 9b63131f37
5 changed files with 44 additions and 58 deletions
+2 -3
View File
@@ -686,10 +686,9 @@ semaphore_take(Semaphore semaphore, U64 endt_us)
}
internal void
semaphore_drop(Semaphore semaphore)
semaphore_drop_count(Semaphore semaphore, U64 drop_count)
{
HANDLE handle = (HANDLE)semaphore.u64[0];
ReleaseSemaphore(handle, 1, 0);
ReleaseSemaphore((HANDLE)*semaphore.u64, drop_count, 0);
}
//- rjf: barriers