Split networking code into its own target (#2091)

This commit is contained in:
Jesse Talavera
2024-07-14 11:03:21 -04:00
committed by GitHub
parent a812a43bda
commit 94ba7c1594
213 changed files with 159 additions and 108 deletions

View File

@ -256,6 +256,9 @@ Semaphore* Semaphore_Create();
void Semaphore_Free(Semaphore* sema);
void Semaphore_Reset(Semaphore* sema);
void Semaphore_Wait(Semaphore* sema);
/// Waits for the semaphore to be signaled, or until the timeout (in milliseconds) expires.
/// If the timeout is 0, then don't wait; return immediately if the semaphore is not signaled.
bool Semaphore_TryWait(Semaphore* sema, int timeout_ms = 0);
void Semaphore_Post(Semaphore* sema, int count = 1);
struct Mutex;