[Mammoth] Move Mutex and Semaphore to a separate folder.

This commit is contained in:
Drew Galbraith 2023-11-22 13:45:04 -08:00
parent ad5b55bf37
commit f1cbfd18b7
7 changed files with 6 additions and 6 deletions

View file

@ -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_)); }