summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Debug/Threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Debug/Threads.h')
-rw-r--r--Source/Core/Common/Debug/Threads.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/Core/Common/Debug/Threads.h b/Source/Core/Common/Debug/Threads.h
index 4d6c4354ac..e9aef96d26 100644
--- a/Source/Core/Common/Debug/Threads.h
+++ b/Source/Core/Common/Debug/Threads.h
@@ -11,6 +11,11 @@
#include "Common/CommonTypes.h"
+namespace Core
+{
+class CPUThreadGuard;
+};
+
namespace Common::Debug
{
struct PartialContext
@@ -41,7 +46,7 @@ public:
LWPThread, // devkitPro libogc thread
};
- virtual PartialContext GetContext() const = 0;
+ virtual PartialContext GetContext(const Core::CPUThreadGuard& guard) const = 0;
virtual u32 GetAddress() const = 0;
virtual u16 GetState() const = 0;
virtual bool IsSuspended() const = 0;
@@ -53,8 +58,8 @@ public:
virtual std::size_t GetStackSize() const = 0;
virtual s32 GetErrno() const = 0;
// Implementation specific, used to store arbitrary data
- virtual std::string GetSpecific() const = 0;
- virtual bool IsValid() const = 0;
+ virtual std::string GetSpecific(const Core::CPUThreadGuard& guard) const = 0;
+ virtual bool IsValid(const Core::CPUThreadGuard& guard) const = 0;
};
using Threads = std::vector<std::unique_ptr<ThreadView>>;