summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-03-12 16:48:43 -0400
committerGravatar Fernando Sahmkow2020-06-27 11:35:48 -0400
commit7020d498c5aef7c1180bfc57031cdd7fbfecdf0f (patch)
treef2508e39a02966cdd4d9acda1e14ed93cdc150cd /src/core/hle/kernel/thread.h
parentGeneral: Fix Stop function (diff)
downloadyuzu-7020d498c5aef7c1180bfc57031cdd7fbfecdf0f.tar.gz
yuzu-7020d498c5aef7c1180bfc57031cdd7fbfecdf0f.tar.xz
yuzu-7020d498c5aef7c1180bfc57031cdd7fbfecdf0f.zip
General: Fix microprofile on dynarmic/svc, fix wait tree showing which threads were running.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 168828ab0..f42d7bd13 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -350,6 +350,22 @@ public:
350 return (type & THREADTYPE_HLE) != 0; 350 return (type & THREADTYPE_HLE) != 0;
351 } 351 }
352 352
353 bool IsSuspendThread() const {
354 return (type & THREADTYPE_SUSPEND) != 0;
355 }
356
357 bool IsIdleThread() const {
358 return (type & THREADTYPE_IDLE) != 0;
359 }
360
361 bool WasRunning() const {
362 return was_running;
363 }
364
365 void SetWasRunning(bool value) {
366 was_running = value;
367 }
368
353 std::shared_ptr<Common::Fiber> GetHostContext() const; 369 std::shared_ptr<Common::Fiber> GetHostContext() const;
354 370
355 ThreadStatus GetStatus() const { 371 ThreadStatus GetStatus() const {
@@ -684,6 +700,8 @@ private:
684 700
685 bool will_be_terminated = false; 701 bool will_be_terminated = false;
686 702
703 bool was_running = false;
704
687 std::string name; 705 std::string name;
688}; 706};
689 707