aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei <ericbunnie@gmail.com>2014-05-26 22:17:49 -0400
committerGravatar bunnei <ericbunnie@gmail.com>2014-05-26 22:17:49 -0400
commita432dc8f39a866b7b523235d6d94531f93bb4aa1 (patch)
treec716af0c8dba3581d164276c4f607ed7562637d8 /src
parent58a3adcdd2eed9d31cd441186af872a0a8924e73 (diff)
kernel: added WaitSynchronization method to Kernel::Object
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/kernel.h7
-rw-r--r--src/core/hle/kernel/mutex.cpp11
-rw-r--r--src/core/hle/kernel/thread.cpp11
-rw-r--r--src/core/hle/service/service.h10
4 files changed, 39 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 4acc9f22..620cd2d7 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.cpp
index 5465b7a3..17fd40ac 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): ImplementMe
return 0;
}
};
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 56c7755c..6e8b53eb 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): ImplementMe
return 0;
}
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h
index 12ef51b9..4671d452 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:
/**