diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-20 23:41:12 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-22 02:47:49 +0100 |
commit | c68eb1569549ae49ae25c6c29cec2e10d8329f2d (patch) | |
tree | 4a8683aac99095884acaf488aa4d059f861138b3 /src/core/hle/kernel/kernel.h | |
parent | Event: Fix implementation of "non-sticky" events. (diff) | |
download | yuzu-c68eb1569549ae49ae25c6c29cec2e10d8329f2d.tar yuzu-c68eb1569549ae49ae25c6c29cec2e10d8329f2d.tar.gz yuzu-c68eb1569549ae49ae25c6c29cec2e10d8329f2d.tar.bz2 yuzu-c68eb1569549ae49ae25c6c29cec2e10d8329f2d.tar.lz yuzu-c68eb1569549ae49ae25c6c29cec2e10d8329f2d.tar.xz yuzu-c68eb1569549ae49ae25c6c29cec2e10d8329f2d.tar.zst yuzu-c68eb1569549ae49ae25c6c29cec2e10d8329f2d.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r-- | src/core/hle/kernel/kernel.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index ca9ccf4bf..1bb0b55bd 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -117,22 +117,16 @@ class WaitObject : public Object { public: /** - * Check if this object is available + * Check if the current thread should wait until the object is available * @return True if the current thread should wait due to this object being unavailable */ - virtual ResultVal<bool> Wait() { - LOG_ERROR(Kernel, "(UNIMPLEMENTED)"); - return UnimplementedFunction(ErrorModule::Kernel); - } + virtual ResultVal<bool> ShouldWait() = 0; /** - * Acquire/lock the this object if it is available + * Acquire/lock the object if it is available * @return True if we were able to acquire this object, otherwise false */ - virtual ResultVal<bool> Acquire() { - LOG_ERROR(Kernel, "(UNIMPLEMENTED)"); - return UnimplementedFunction(ErrorModule::Kernel); - } + virtual ResultVal<bool> Acquire() = 0; /** * Add a thread to wait on this object |