FEXCore: Removes GetExitReason

Split off from #3282 to reduce burden.
We read the member directly now. Removes one usage of ParentThread
in FEXCore.
This commit is contained in:
Ryan Houdek committed 2023-11-23 07:50:23 -08:00
1 parent 43cf2e4e2c
commit f9fb61cf1a
3 files changed
-15

No files matched your search

@@ -52,10 +52,6 @@ namespace FEXCore::Context {
CompileBlock(Thread->CurrentFrame, GuestRIP, MaxInst);
}
FEXCore::Context::ExitReason FEXCore::Context::ContextImpl::GetExitReason() {
return ParentThread->ExitReason;
}
bool FEXCore::Context::ContextImpl::IsDone() const {
return IsPaused();
}
@@ -93,8 +93,6 @@ namespace FEXCore::Context {
int GetProgramStatus() const override;
ExitReason GetExitReason() override;
bool IsDone() const override;
void GetCPUState(FEXCore::Core::CPUState *State) const override;
-9
View File
@@ -211,15 +211,6 @@ namespace FEXCore::Context {
*/
FEX_DEFAULT_VISIBILITY virtual int GetProgramStatus() const = 0;
/**
* @brief [[threadsafe]] Returns the ExitReason of the parent thread. Typically used for async result status
*
* @param CTX The context that we created
*
* @return The ExitReason for the parentthread
*/
FEX_DEFAULT_VISIBILITY virtual ExitReason GetExitReason() = 0;
/**
* @brief [[theadsafe]] Checks if the Context is either done working or paused(in the case of single stepping)
*