mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-22 05:42:22 -08:00
ditch semaphores in thread pool in favor of barriers
This commit is contained in:
1 parent
6ea9bfc5a3
commit
9b63131f37
5 files changed
+44
-58
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user