mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-10 09:55:42 +00:00
ditch semaphores in thread pool in favor of barriers
This commit is contained in:
committed by
Ryan Fleury
parent
6ea9bfc5a3
commit
9b63131f37
@@ -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