From 834fa5db65ab3bc2e05474e280f5a0a73be7411e Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 28 Dec 2017 23:12:28 -0500 Subject: kernel: Add SyncObject primitive, use it for ClientSession. --- src/core/hle/kernel/client_session.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/core/hle/kernel/client_session.h') diff --git a/src/core/hle/kernel/client_session.h b/src/core/hle/kernel/client_session.h index daf521529..671174ec4 100644 --- a/src/core/hle/kernel/client_session.h +++ b/src/core/hle/kernel/client_session.h @@ -7,7 +7,7 @@ #include #include #include "common/common_types.h" -#include "core/hle/kernel/kernel.h" +#include "core/hle/kernel/sync_object.h" #include "core/hle/result.h" namespace Kernel { @@ -16,7 +16,7 @@ class ServerSession; class Session; class Thread; -class ClientSession final : public Object { +class ClientSession final : public SyncObject { public: friend class ServerSession; @@ -33,12 +33,7 @@ public: return HANDLE_TYPE; } - /** - * Sends an SyncRequest from the current emulated thread. - * @param thread Thread that initiated the request. - * @return ResultCode of the operation. - */ - ResultCode SendSyncRequest(SharedPtr thread); + ResultCode SendSyncRequest(SharedPtr thread) override; std::string name; ///< Name of client port (optional) -- cgit v1.2.3