mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-28 14:13:04 +00:00
25 lines
376 B
C++
25 lines
376 B
C++
#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
|