diff options
author | bunnei <ericbunnie@gmail.com> | 2014-05-27 03:01:27 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-05-27 03:01:27 +0200 |
commit | d73d782ba7ea6f3f2dd9c4f70d34c1004397dacb (patch) | |
tree | 6eb4c55468938b7d2a95f029c15dd9f6be913748 | |
parent | svc: added stub for DuplicateHandle SVC call (diff) | |
download | yuzu-d73d782ba7ea6f3f2dd9c4f70d34c1004397dacb.tar yuzu-d73d782ba7ea6f3f2dd9c4f70d34c1004397dacb.tar.gz yuzu-d73d782ba7ea6f3f2dd9c4f70d34c1004397dacb.tar.bz2 yuzu-d73d782ba7ea6f3f2dd9c4f70d34c1004397dacb.tar.lz yuzu-d73d782ba7ea6f3f2dd9c4f70d34c1004397dacb.tar.xz yuzu-d73d782ba7ea6f3f2dd9c4f70d34c1004397dacb.tar.zst yuzu-d73d782ba7ea6f3f2dd9c4f70d34c1004397dacb.zip |
-rw-r--r-- | src/core/hle/kernel/kernel.h | 1 | ||||
-rw-r--r-- | src/core/hle/kernel/mutex.cpp | 5 | ||||
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 5 | ||||
-rw-r--r-- | src/core/hle/service/srv.h | 6 |
4 files changed, 11 insertions, 6 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 7cd79c2c4..046d583cb 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -42,6 +42,7 @@ 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; }; class ObjectPool : NonCopyable { diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index 019efbc78..fa924404d 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp @@ -23,6 +23,11 @@ public: bool locked; ///< Current locked state 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() { + return 0; + } }; //////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index bf4c8353c..b9dd9fac4 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -36,6 +36,11 @@ public: inline bool IsWaiting() const { return (status & THREADSTATUS_WAIT) != 0; } inline bool IsSuspended() const { return (status & THREADSTATUS_SUSPEND) != 0; } + /// Synchronize kernel object + Result SyncRequest() { + return 0; + } + ThreadContext context; u32 status; diff --git a/src/core/hle/service/srv.h b/src/core/hle/service/srv.h index 1e35032ba..81109a2a8 100644 --- a/src/core/hle/service/srv.h +++ b/src/core/hle/service/srv.h @@ -26,12 +26,6 @@ public: return "srv:"; } - /** - * Called when svcSendSyncRequest is called, loads command buffer and executes comand - * @return Return result of svcSendSyncRequest passed back to user app - */ - Result Sync(); - }; } // namespace |