summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-10-05 05:01:56 +0200
committerGitHub <noreply@github.com>2016-10-05 05:01:56 +0200
commit09c3e444d42856ca0978153dcabcb5c3884877b9 (patch)
tree89732a2264868d7dddc8f4c8355c0afac62b108c /src/core/hle/kernel/kernel.h
parentMerge pull request #2106 from wwylele/delete-recursive (diff)
parentmove ResetType to kernel.h (diff)
downloadyuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.tar
yuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.tar.gz
yuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.tar.bz2
yuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.tar.lz
yuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.tar.xz
yuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.tar.zst
yuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.zip
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 {
DEFAULT_STACK_SIZE = 0x4000,
};
+enum class ResetType {
+ OneShot,
+ Sticky,
+ Pulse,
+};
+
class Object : NonCopyable {
public:
virtual ~Object() {}
@@ -149,6 +155,9 @@ public:
/// Wake up all threads waiting on this object
void WakeupAllWaitingThreads();
+ /// Get a const reference to the waiting threads list for debug use
+ const std::vector<SharedPtr<Thread>>& GetWaitingThreads() const;
+
private:
/// Threads waiting for this object to become available
std::vector<SharedPtr<Thread>> waiting_threads;