[XThread] Replace guest exception handling with setjmp/longjmp

This commit is contained in:
Herman S.
2025-10-06 16:44:09 +09:00
parent dac9883473
commit 22f21fada9
2 changed files with 26 additions and 21 deletions

View File

@@ -11,6 +11,7 @@
#define XENIA_KERNEL_XTHREAD_H_
#include <atomic>
#include <csetjmp>
#include <string>
#include "xenia/base/mutex.h"
@@ -466,6 +467,10 @@ class XThread : public XObject, public cpu::Thread {
int32_t priority_ = 0;
// Reentry context for setjmp/longjmp based stack unwinding
std::jmp_buf reentry_jmp_buf_;
uint32_t reentry_address_ = 0;
std::mutex thread_lock_;
};