diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-11 08:45:54 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-15 02:14:53 +0100 |
commit | 07c9d9bdbdbf632624ca01ea83dbfa51176415ae (patch) | |
tree | 7c9a425ed2c7397e679d24356e36ab54372c7755 /src/core/hle/kernel/k_server_port.h | |
parent | core: hle: kernel: k_memory_layout: Update kernel slab memory sizes. (diff) | |
download | yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.gz yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.bz2 yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.lz yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.xz yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.zst yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.zip |
Diffstat (limited to 'src/core/hle/kernel/k_server_port.h')
-rw-r--r-- | src/core/hle/kernel/k_server_port.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_server_port.h b/src/core/hle/kernel/k_server_port.h index 6302d5e61..2185736be 100644 --- a/src/core/hle/kernel/k_server_port.h +++ b/src/core/hle/kernel/k_server_port.h @@ -30,11 +30,11 @@ public: /// Whether or not this server port has an HLE handler available. bool HasSessionRequestHandler() const { - return session_handler != nullptr; + return !session_handler.expired(); } /// Gets the HLE handler for this port. - SessionRequestHandlerPtr GetSessionRequestHandler() const { + SessionRequestHandlerWeakPtr GetSessionRequestHandler() const { return session_handler; } @@ -42,7 +42,7 @@ public: * Sets the HLE handler template for the port. ServerSessions crated by connecting to this port * will inherit a reference to this handler. */ - void SetSessionHandler(SessionRequestHandlerPtr&& handler) { + void SetSessionHandler(SessionRequestHandlerWeakPtr&& handler) { session_handler = std::move(handler); } @@ -66,7 +66,7 @@ private: void CleanupSessions(); SessionList session_list; - SessionRequestHandlerPtr session_handler; + SessionRequestHandlerWeakPtr session_handler; KPort* parent{}; }; |