[orbis-kernel] Evf: don't use thread retval to store result

This commit is contained in:
Ivan Chikish 2023-07-20 16:12:57 +03:00
parent 1bf88f6fe8
commit 5f5538cc68
3 changed files with 16 additions and 20 deletions

View file

@ -12,7 +12,6 @@ namespace orbis {
struct Process;
struct Thread {
utils::shared_mutex mtx;
utils::shared_cv sync_cv;
Process *tproc = nullptr;
uint64_t retval[2]{};
void *context{};
@ -28,6 +27,11 @@ struct Thread {
ThreadState state = ThreadState::INACTIVE;
std::thread handle;
// Used to wake up thread in sleep queue
utils::shared_cv sync_cv;
uint64_t evfResultPattern;
uint64_t evfIsCancelled;
// FIXME: implement thread destruction
void incRef() {}
void decRef() {}