summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 0e95f7ff0..6b8dbecff 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -53,6 +53,12 @@ enum {
53 DEFAULT_STACK_SIZE = 0x4000, 53 DEFAULT_STACK_SIZE = 0x4000,
54}; 54};
55 55
56enum class ResetType {
57 OneShot,
58 Sticky,
59 Pulse,
60};
61
56class Object : NonCopyable { 62class Object : NonCopyable {
57public: 63public:
58 virtual ~Object() {} 64 virtual ~Object() {}
@@ -149,6 +155,9 @@ public:
149 /// Wake up all threads waiting on this object 155 /// Wake up all threads waiting on this object
150 void WakeupAllWaitingThreads(); 156 void WakeupAllWaitingThreads();
151 157
158 /// Get a const reference to the waiting threads list for debug use
159 const std::vector<SharedPtr<Thread>>& GetWaitingThreads() const;
160
152private: 161private:
153 /// Threads waiting for this object to become available 162 /// Threads waiting for this object to become available
154 std::vector<SharedPtr<Thread>> waiting_threads; 163 std::vector<SharedPtr<Thread>> waiting_threads;