SuperMarioOdysseyOnline/include/sead/hostio/seadHostIOThreadLock.h

26 lines
376 B
C
Raw Normal View History

2022-06-16 21:33:18 +00:00
#pragma once
#include "basis/seadTypes.h"
#include "thread/seadAtomic.h"
namespace sead
{
class CriticalSection;
namespace hostio
{
class ThreadLock
{
public:
ThreadLock();
~ThreadLock();
static void lock();
static void unlock();
private:
static CriticalSection& getCS();
static Atomic<u32> sLockCnt;
};
} // namespace hostio
} // namespace sead