diff options
author | bunnei <ericbunnie@gmail.com> | 2014-05-27 04:12:46 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-05-27 04:12:46 +0200 |
commit | 58a3adcdd2eed9d31cd441186af872a0a8924e73 (patch) | |
tree | 65dc8f4a1c26151ce027558ecdf886cb0beeb67b /src/core/hle/kernel | |
parent | svc: added some assertions (diff) | |
download | yuzu-58a3adcdd2eed9d31cd441186af872a0a8924e73.tar yuzu-58a3adcdd2eed9d31cd441186af872a0a8924e73.tar.gz yuzu-58a3adcdd2eed9d31cd441186af872a0a8924e73.tar.bz2 yuzu-58a3adcdd2eed9d31cd441186af872a0a8924e73.tar.lz yuzu-58a3adcdd2eed9d31cd441186af872a0a8924e73.tar.xz yuzu-58a3adcdd2eed9d31cd441186af872a0a8924e73.tar.zst yuzu-58a3adcdd2eed9d31cd441186af872a0a8924e73.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/kernel.h | 9 | ||||
-rw-r--r-- | src/core/hle/kernel/mutex.cpp | 8 | ||||
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 8 |
3 files changed, 20 insertions, 5 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 786d3abf3..4acc9f220 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -47,7 +47,14 @@ public: virtual const char *GetTypeName() { return "[BAD KERNEL OBJECT TYPE]"; } virtual const char *GetName() { return "[UNKNOWN KERNEL OBJECT]"; } virtual Kernel::HandleType GetHandleType() const = 0; - virtual Result SyncRequest() = 0; + + /** + * Synchronize kernel object + * @param wait Boolean wait set if current thread should wait as a result of sync operation + * @return Result of operation, 0 on success, otherwise error code + */ + virtual Result SyncRequest(bool* wait) = 0; + }; class ObjectPool : NonCopyable { diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index fa924404d..5465b7a3c 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp @@ -24,8 +24,12 @@ public: Handle lock_thread; ///< Handle to thread that currently has mutex std::vector<Handle> waiting_threads; ///< Threads that are waiting for the mutex - /// Synchronize kernel object - Result SyncRequest() { + /** + * Synchronize kernel object + * @param wait Boolean wait set if current thread should wait as a result of sync operation + * @return Result of operation, 0 on success, otherwise error code + */ + Result SyncRequest(bool* wait) { return 0; } }; diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index b9dd9fac4..56c7755cf 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -36,8 +36,12 @@ public: inline bool IsWaiting() const { return (status & THREADSTATUS_WAIT) != 0; } inline bool IsSuspended() const { return (status & THREADSTATUS_SUSPEND) != 0; } - /// Synchronize kernel object - Result SyncRequest() { + /** + * Synchronize kernel object + * @param wait Boolean wait set if current thread should wait as a result of sync operation + * @return Result of operation, 0 on success, otherwise error code + */ + Result SyncRequest(bool* wait) { return 0; } |