mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 07:12:46 +00:00
hle: kernel: k_server_session: Return service thread by strong pointer.
This commit is contained in:
parent
93f93cb8bc
commit
ada4242c01
|
@ -85,8 +85,8 @@ public:
|
|||
*/
|
||||
void ClientDisconnected(KServerSession* session);
|
||||
|
||||
std::weak_ptr<ServiceThread> GetServiceThread() const {
|
||||
return service_thread;
|
||||
std::shared_ptr<ServiceThread> GetServiceThread() const {
|
||||
return service_thread.lock();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
@ -152,7 +152,7 @@ public:
|
|||
session_handler = std::move(handler);
|
||||
}
|
||||
|
||||
std::weak_ptr<ServiceThread> GetServiceThread() const {
|
||||
std::shared_ptr<ServiceThread> GetServiceThread() const {
|
||||
return session_handler->GetServiceThread();
|
||||
}
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ ResultCode KServerSession::QueueSyncRequest(KThread* thread, Core::Memory::Memor
|
|||
|
||||
context->PopulateFromIncomingCommandBuffer(kernel.CurrentProcess()->GetHandleTable(), cmd_buf);
|
||||
|
||||
if (auto strong_ptr = manager->GetServiceThread().lock(); strong_ptr) {
|
||||
if (auto strong_ptr = manager->GetServiceThread(); strong_ptr) {
|
||||
strong_ptr->QueueSyncRequest(*parent, std::move(context));
|
||||
return ResultSuccess;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue