[XThread] Replace guest exception handling with setjmp/longjmp
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user