HANDLE handle = (HANDLE)semaphore;
BOOL ret = ReleaseSemaphore(handle, 1, DE_NULL);
DE_ASSERT(ret);
+ DE_UNREF(ret);
}
void deSemaphore_decrement (deSemaphore semaphore)
HANDLE handle = (HANDLE)semaphore;
DWORD ret = WaitForSingleObject(handle, INFINITE);
DE_ASSERT(ret == WAIT_OBJECT_0);
+ DE_UNREF(ret);
}
deBool deSemaphore_tryDecrement (deSemaphore semaphore)