[Mammoth] Move Mutex and Semaphore to a separate folder.
This commit is contained in:
parent
ad5b55bf37
commit
f1cbfd18b7
7 changed files with 6 additions and 6 deletions
|
|
@ -1,11 +0,0 @@
|
|||
#include "mammoth/semaphore.h"
|
||||
|
||||
#include <zcall.h>
|
||||
|
||||
#include "mammoth/debug.h"
|
||||
|
||||
Semaphore::Semaphore() { check(ZSemaphoreCreate(&semaphore_cap_)); }
|
||||
Semaphore::~Semaphore() { check(ZCapRelease(semaphore_cap_)); }
|
||||
|
||||
void Semaphore::Wait() { check(ZSemaphoreWait(semaphore_cap_)); }
|
||||
void Semaphore::Signal() { check(ZSemaphoreSignal(semaphore_cap_)); }
|
||||
Loading…
Add table
Add a link
Reference in a new issue