summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-13 21:57:45 +0200
committerLioncash <mathew1800@gmail.com>2018-09-13 22:05:57 +0200
commit2ea45fe75b34ef01d4ef5ced825eddded21d1d33 (patch)
treed79664ce2f73c5d6fbc7277f757948a0d5043e90 /src/core/hle
parentMerge pull request #1308 from valentinvanelslande/ipc (diff)
downloadyuzu-2ea45fe75b34ef01d4ef5ced825eddded21d1d33.tar
yuzu-2ea45fe75b34ef01d4ef5ced825eddded21d1d33.tar.gz
yuzu-2ea45fe75b34ef01d4ef5ced825eddded21d1d33.tar.bz2
yuzu-2ea45fe75b34ef01d4ef5ced825eddded21d1d33.tar.lz
yuzu-2ea45fe75b34ef01d4ef5ced825eddded21d1d33.tar.xz
yuzu-2ea45fe75b34ef01d4ef5ced825eddded21d1d33.tar.zst
yuzu-2ea45fe75b34ef01d4ef5ced825eddded21d1d33.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/thread.h12
-rw-r--r--src/core/hle/service/vi/vi.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 20f50458b..cb57ee78a 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -15,6 +15,12 @@
#include "core/hle/kernel/wait_object.h"
#include "core/hle/result.h"
+namespace Kernel {
+
+class KernelCore;
+class Process;
+class Scheduler;
+
enum ThreadPriority : u32 {
THREADPRIO_HIGHEST = 0, ///< Highest thread priority
THREADPRIO_USERLAND_MAX = 24, ///< Highest thread priority for userland apps
@@ -54,12 +60,6 @@ enum class ThreadWakeupReason {
Timeout // The thread was woken up due to a wait timeout.
};
-namespace Kernel {
-
-class KernelCore;
-class Process;
-class Scheduler;
-
class Thread final : public WaitObject {
public:
/**
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 85244ac3b..cf94b00e6 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -514,7 +514,7 @@ private:
ctx.SleepClientThread(
Kernel::GetCurrentThread(), "IHOSBinderDriver::DequeueBuffer", -1,
[=](Kernel::SharedPtr<Kernel::Thread> thread, Kernel::HLERequestContext& ctx,
- ThreadWakeupReason reason) {
+ Kernel::ThreadWakeupReason reason) {
// Repeat TransactParcel DequeueBuffer when a buffer is available
auto buffer_queue = nv_flinger->GetBufferQueue(id);
boost::optional<u32> slot = buffer_queue->DequeueBuffer(width, height);