[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
15
lib/mammoth/sync/semaphore.h
Normal file
15
lib/mammoth/sync/semaphore.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <ztypes.h>
|
||||
|
||||
class Semaphore {
|
||||
public:
|
||||
Semaphore();
|
||||
~Semaphore();
|
||||
|
||||
void Wait();
|
||||
void Signal();
|
||||
|
||||
private:
|
||||
z_cap_t semaphore_cap_;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue