VERY experimental Nintendo Switch 2 emulator
C++
kernel: added WaitSynchronization method to Kernel::Object
bunneia432dc8f39a8
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.hindex 4acc9f220f..620cd2d737 100644--- a/src/core/hle/kernel/kernel.h+++ b/src/core/hle/kernel/kernel.h@@ -55,6 +55,13 @@ public:*/virtual Result SyncRequest(bool* wait) = 0;+ /**+ * Wait for kernel object to synchronize+ * @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 WaitSynchronization(bool* wait) = 0;+};class ObjectPool : NonCopyable {diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cppindex 5465b7a3cc..17fd40acd5 100644--- a/src/core/hle/kernel/mutex.cpp+++ b/src/core/hle/kernel/mutex.cpp@@ -30,6 +30,17 @@ public:* @return Result of operation, 0 on success, otherwise error code*/Result SyncRequest(bool* wait) {+ // TODO(bunnei): ImplementMe+ return 0;+ }++ /**+ * Wait for kernel object to synchronize+ * @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 WaitSynchronization(bool* wait) {+ // TODO(bunnei): ImplementMereturn 0;}};diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cppindex 56c7755cfd..6e8b53eb1d 100644--- a/src/core/hle/kernel/thread.cpp+++ b/src/core/hle/kernel/thread.cpp@@ -42,6 +42,17 @@ public:* @return Result of operation, 0 on success, otherwise error code*/Result SyncRequest(bool* wait) {+ // TODO(bunnei): ImplementMe+ return 0;+ }++ /**+ * Wait for kernel object to synchronize+ * @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 WaitSynchronization(bool* wait) {+ // TODO(bunnei): ImplementMereturn 0;}diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.hindex 12ef51b91f..4671d4528a 100644--- a/src/core/hle/service/service.h+++ b/src/core/hle/service/service.h@@ -100,6 +100,16 @@ public:return 0; // TODO: Implement return from actual function}+ /**+ * Wait for kernel object to synchronize+ * @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 WaitSynchronization(bool* wait) {+ // TODO(bunnei): ImplementMe+ return 0;+ }+protected:/**