tesses-framework/include/TessesFramework/Threading/Mutex.hpp

22 lines
391 B
C++
Raw Normal View History

2024-12-06 10:58:55 +00:00
#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();
};
}