first commit
This commit is contained in:
22
include/TessesFramework/Threading/Mutex.hpp
Normal file
22
include/TessesFramework/Threading/Mutex.hpp
Normal file
@ -0,0 +1,22 @@
|
||||
#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();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user