summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar bunnei2015-01-17 22:23:49 -0500
committerGravatar bunnei2015-01-21 19:10:24 -0500
commitaa01c57ae9d73e41b65d37860ca6fbb91caba33a (patch)
tree904936860b1e8319ec5edc3a1e0e6c2c12f01d9f /src/core/hle/kernel/kernel.h
parentWaitSynchronizationN: Handle case where handles=nullptr. (diff)
downloadyuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.tar.gz
yuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.tar.xz
yuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.zip
Kernel: Separate WaitSynchronization into Wait and Acquire methods.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index af4e2f443..d98fd0389 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -65,11 +65,20 @@ public:
65 virtual Kernel::HandleType GetHandleType() const = 0; 65 virtual Kernel::HandleType GetHandleType() const = 0;
66 66
67 /** 67 /**
68 * Wait for kernel object to synchronize. 68 * Wait the current thread for kernel object to synchronize.
69 * @param index Index of wait object (only applies to WaitSynchronizationN) 69 * @param index Index of wait object (only applies to WaitSynchronizationN)
70 * @return True if the current thread should wait as a result of the wait 70 * @return True if the current thread should wait as a result of the wait
71 */ 71 */
72 virtual ResultVal<bool> WaitSynchronization(unsigned index=0) { 72 virtual ResultVal<bool> Wait(unsigned index = 0) {
73 LOG_ERROR(Kernel, "(UNIMPLEMENTED)");
74 return UnimplementedFunction(ErrorModule::Kernel);
75 }
76
77 /**
78 * Acquire/lock the kernel object if it is available
79 * @return True if we were able to acquire the kernel object, otherwise false
80 */
81 virtual ResultVal<bool> Acquire() {
73 LOG_ERROR(Kernel, "(UNIMPLEMENTED)"); 82 LOG_ERROR(Kernel, "(UNIMPLEMENTED)");
74 return UnimplementedFunction(ErrorModule::Kernel); 83 return UnimplementedFunction(ErrorModule::Kernel);
75 } 84 }