2023-11-22 10:55:40 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <ztypes.h>
|
|
|
|
|
2023-11-22 14:59:41 -08:00
|
|
|
namespace mmth {
|
|
|
|
|
2023-11-22 10:55:40 -08:00
|
|
|
class Semaphore {
|
|
|
|
public:
|
|
|
|
Semaphore();
|
|
|
|
~Semaphore();
|
|
|
|
|
|
|
|
void Wait();
|
|
|
|
void Signal();
|
|
|
|
|
|
|
|
private:
|
|
|
|
z_cap_t semaphore_cap_;
|
|
|
|
};
|
2023-11-22 14:59:41 -08:00
|
|
|
|
|
|
|
} // namespace mmth
|