[orbis-kernel][Thread] Replace std::mutex with shared_mutex

shared_mutex should be used in shared memory
This commit is contained in:
Ivan Chikish 2023-07-04 20:06:56 +03:00
parent d7a34f0904
commit d279166c0b

View file

@ -4,12 +4,12 @@
#include "types.hpp"
#include "ThreadState.hpp"
#include <mutex>
#include "../utils/SharedMutex.hpp"
namespace orbis {
struct Process;
struct Thread {
std::mutex lock;
shared_mutex mtx;
Process *tproc = nullptr;
uint64_t retval[2]{};
void *context{};