22 lines
391 B
C++
22 lines
391 B
C++
#pragma once
|
|
#if defined(GEKKO)
|
|
#include <ogc/mutex.h>
|
|
#else
|
|
#include <threads.h>
|
|
#endif
|
|
namespace Tesses::Framework::Threading
|
|
{
|
|
class Mutex {
|
|
#if defined(GEKKO)
|
|
mutex_t mtx;
|
|
#else
|
|
mtx_t mtx;
|
|
#endif
|
|
public:
|
|
Mutex();
|
|
void Lock();
|
|
void Unlock();
|
|
bool TryLock();
|
|
~Mutex();
|
|
};
|
|
} |