mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
32 lines
587 B
C++
32 lines
587 B
C++
#pragma once
|
|
|
|
#include "ThreadState.hpp"
|
|
#include "orbis-config.hpp"
|
|
#include "types.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;
|
|
|
|
// FIXME: implement thread destruction
|
|
void incRef() {}
|
|
void decRef() {}
|
|
};
|
|
} // namespace orbis
|