donut-decomp/include/util/Mutex.hpp
2021-10-20 17:40:24 +02:00

19 lines
No EOL
244 B
C++

#pragma once
#include <os/osMutex.h>
namespace util {
struct Mutex {
OSMutex inner_;
Mutex();
void lock();
void unlock();
};
struct ScopedMutex {
Mutex &mutex_;
ScopedMutex(Mutex &mutex);
~ScopedMutex();
};
} // namespace util