Graphics module Initial (And some more fixes embedded)
This commit is contained in:
parent
e81449eddf
commit
6db1406d68
23 changed files with 456 additions and 31 deletions
19
Utils/public/Multithreading.hpp
Normal file
19
Utils/public/Multithreading.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
namespace tp {
|
||||
class Mutex {
|
||||
pthread_mutex_t mMutex {};
|
||||
public:
|
||||
Mutex() = default;
|
||||
|
||||
void lock() {
|
||||
pthread_mutex_lock(&mMutex);
|
||||
}
|
||||
|
||||
void unlock() {
|
||||
pthread_mutex_unlock(&mMutex);
|
||||
}
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue