summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-11-07 01:43:38 +0100
committerLiam <byteslice@airmail.cc>2022-11-07 01:50:51 +0100
commit6a0d8b2aa154921e8328dfab9450510ad8e1b5c8 (patch)
tree58c88d7ca923789c9a5d5518d2af1e413887f451 /src/core/hle/kernel/kernel.h
parentMerge pull request #9195 from vonchenplus/vmm_kinds_error (diff)
downloadyuzu-6a0d8b2aa154921e8328dfab9450510ad8e1b5c8.tar
yuzu-6a0d8b2aa154921e8328dfab9450510ad8e1b5c8.tar.gz
yuzu-6a0d8b2aa154921e8328dfab9450510ad8e1b5c8.tar.bz2
yuzu-6a0d8b2aa154921e8328dfab9450510ad8e1b5c8.tar.lz
yuzu-6a0d8b2aa154921e8328dfab9450510ad8e1b5c8.tar.xz
yuzu-6a0d8b2aa154921e8328dfab9450510ad8e1b5c8.tar.zst
yuzu-6a0d8b2aa154921e8328dfab9450510ad8e1b5c8.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/kernel.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index caca60586..29617d736 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -309,24 +309,24 @@ public:
* See GetDefaultServiceThread.
* @param name String name for the ServerSession creating this thread, used for debug
* purposes.
- * @returns The a weak pointer newly created service thread.
+ * @returns A reference to the newly created service thread.
*/
- std::weak_ptr<Kernel::ServiceThread> CreateServiceThread(const std::string& name);
+ Kernel::ServiceThread& CreateServiceThread(const std::string& name);
/**
* Gets the default host service thread, which executes HLE service requests. Unless service
* requests need to block on the host, the default service thread should be used in favor of
* creating a new service thread.
- * @returns The a weak pointer for the default service thread.
+ * @returns A reference to the default service thread.
*/
- std::weak_ptr<Kernel::ServiceThread> GetDefaultServiceThread() const;
+ Kernel::ServiceThread& GetDefaultServiceThread() const;
/**
* Releases a HLE service thread, instructing KernelCore to free it. This should be called when
* the ServerSession associated with the thread is destroyed.
* @param service_thread Service thread to release.
*/
- void ReleaseServiceThread(std::weak_ptr<Kernel::ServiceThread> service_thread);
+ void ReleaseServiceThread(Kernel::ServiceThread& service_thread);
/// Workaround for single-core mode when preempting threads while idle.
bool IsPhantomModeForSingleCore() const;