diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-03 03:02:10 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-06 01:40:50 +0200 |
commit | 34bed1ab41a296f8ccccc47d7c06ab03de2018b5 (patch) | |
tree | 68ef2cba05f74fba14ec8c0e80b492a5fa587da5 /src/core/hle/kernel/hle_ipc.h | |
parent | core: Defer CoreTiming initialization. (diff) | |
download | yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.gz yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.bz2 yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.lz yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.xz yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.zst yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.zip |
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.h')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h index 6fba42615..75617bff0 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h @@ -109,8 +109,7 @@ protected: class HLERequestContext { public: explicit HLERequestContext(KernelCore& kernel, Core::Memory::Memory& memory, - std::shared_ptr<ServerSession> session, - std::shared_ptr<KThread> thread); + std::shared_ptr<ServerSession> session, KThread* thread); ~HLERequestContext(); /// Returns a pointer to the IPC command buffer for this request. @@ -276,10 +275,6 @@ public: return *thread; } - const KThread& GetThread() const { - return *thread; - } - bool IsThreadWaiting() const { return is_thread_waiting; } @@ -291,7 +286,8 @@ private: std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf; std::shared_ptr<Kernel::ServerSession> server_session; - std::shared_ptr<KThread> thread; + KThread* thread; + // TODO(yuriks): Check common usage of this and optimize size accordingly boost::container::small_vector<Handle, 8> move_handles; boost::container::small_vector<Handle, 8> copy_handles; |