summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar bunnei2014-06-05 23:13:28 -0400
committerGravatar bunnei2014-06-13 09:51:08 -0400
commitaae9fcf4a4071a408af10ca1c72180cdc04687b8 (patch)
tree9d5bd2a270b9531a06adb59e3134c7224dd22c22 /src/core/hle/kernel
parentKernel: Added real support for thread and event blocking (diff)
downloadyuzu-aae9fcf4a4071a408af10ca1c72180cdc04687b8.tar.gz
yuzu-aae9fcf4a4071a408af10ca1c72180cdc04687b8.tar.xz
yuzu-aae9fcf4a4071a408af10ca1c72180cdc04687b8.zip
Kernel: Made SyncRequest not pure virtual, with a default implementation of error (as this is not required for all kernel objects)
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/event.cpp11
-rw-r--r--src/core/hle/kernel/kernel.h6
-rw-r--r--src/core/hle/kernel/thread.cpp10
3 files changed, 4 insertions, 23 deletions
diff --git a/src/core/hle/kernel/event.cpp b/src/core/hle/kernel/event.cpp
index 787e9f5fd..36c7dcbc8 100644
--- a/src/core/hle/kernel/event.cpp
+++ b/src/core/hle/kernel/event.cpp
@@ -31,17 +31,6 @@ public:
31 std::string name; ///< Name of event (optional) 31 std::string name; ///< Name of event (optional)
32 32
33 /** 33 /**
34 * Synchronize kernel object
35 * @param wait Boolean wait set if current thread should wait as a result of sync operation
36 * @return Result of operation, 0 on success, otherwise error code
37 */
38 Result SyncRequest(bool* wait) {
39 // TODO(bunnei): ImplementMe
40 ERROR_LOG(KERNEL, "(UMIMPLEMENTED) call");
41 return 0;
42 }
43
44 /**
45 * Wait for kernel object to synchronize 34 * Wait for kernel object to synchronize
46 * @param wait Boolean wait set if current thread should wait as a result of sync operation 35 * @param wait Boolean wait set if current thread should wait as a result of sync operation
47 * @return Result of operation, 0 on success, otherwise error code 36 * @return Result of operation, 0 on success, otherwise error code
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index c26071276..f1bb78801 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -53,7 +53,10 @@ public:
53 * @param wait Boolean wait set if current thread should wait as a result of sync operation 53 * @param wait Boolean wait set if current thread should wait as a result of sync operation
54 * @return Result of operation, 0 on success, otherwise error code 54 * @return Result of operation, 0 on success, otherwise error code
55 */ 55 */
56 virtual Result SyncRequest(bool* wait) = 0; 56 virtual Result SyncRequest(bool* wait) {
57 ERROR_LOG(KERNEL, "(UNIMPLEMENTED)");
58 return -1;
59 }
57 60
58 /** 61 /**
59 * Wait for kernel object to synchronize 62 * Wait for kernel object to synchronize
@@ -61,7 +64,6 @@ public:
61 * @return Result of operation, 0 on success, otherwise error code 64 * @return Result of operation, 0 on success, otherwise error code
62 */ 65 */
63 virtual Result WaitSynchronization(bool* wait) = 0; 66 virtual Result WaitSynchronization(bool* wait) = 0;
64
65}; 67};
66 68
67class ObjectPool : NonCopyable { 69class ObjectPool : NonCopyable {
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index d372df709..180c14928 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -38,16 +38,6 @@ public:
38 inline bool IsSuspended() const { return (status & THREADSTATUS_SUSPEND) != 0; } 38 inline bool IsSuspended() const { return (status & THREADSTATUS_SUSPEND) != 0; }
39 39
40 /** 40 /**
41 * Synchronize kernel object
42 * @param wait Boolean wait set if current thread should wait as a result of sync operation
43 * @return Result of operation, 0 on success, otherwise error code
44 */
45 Result SyncRequest(bool* wait) {
46 // TODO(bunnei): ImplementMe
47 return 0;
48 }
49
50 /**
51 * Wait for kernel object to synchronize 41 * Wait for kernel object to synchronize
52 * @param wait Boolean wait set if current thread should wait as a result of sync operation 42 * @param wait Boolean wait set if current thread should wait as a result of sync operation
53 * @return Result of operation, 0 on success, otherwise error code 43 * @return Result of operation, 0 on success, otherwise error code