diff options
| author | 2014-06-05 23:13:28 -0400 | |
|---|---|---|
| committer | 2014-06-13 09:51:08 -0400 | |
| commit | aae9fcf4a4071a408af10ca1c72180cdc04687b8 (patch) | |
| tree | 9d5bd2a270b9531a06adb59e3134c7224dd22c22 /src/core/hle/kernel/kernel.h | |
| parent | Kernel: Added real support for thread and event blocking (diff) | |
| download | yuzu-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/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 | ||
| 67 | class ObjectPool : NonCopyable { | 69 | class ObjectPool : NonCopyable { |