rpcsx/orbis-kernel/include/orbis/thread/Thread.hpp
Ivan Chikish d279166c0b [orbis-kernel][Thread] Replace std::mutex with shared_mutex
shared_mutex should be used in shared memory
2023-07-04 20:07:06 +03:00

31 lines
519 B
C++

#pragma once
#include "orbis-config.hpp"
#include "types.hpp"
#include "ThreadState.hpp"
#include "../utils/SharedMutex.hpp"
namespace orbis {
struct Process;
struct Thread {
shared_mutex mtx;
Process *tproc = nullptr;
uint64_t retval[2]{};
void *context{};
ptr<void> stackStart;
ptr<void> stackEnd;
uint64_t fsBase{};
uint64_t gsBase{};
char name[32];
uint64_t sigMask[4] = {
0x7fff'ffff,
0
};
lwpid_t tid = -1;
ThreadState state = ThreadState::INACTIVE;
};
} // namespace orbis