acadia/lib/mammoth/sync/semaphore.h

20 lines
206 B
C
Raw Normal View History

#pragma once
#include <ztypes.h>
namespace mmth {
class Semaphore {
public:
Semaphore();
~Semaphore();
void Wait();
void Signal();
private:
z_cap_t semaphore_cap_;
};
} // namespace mmth