summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-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:
309 * See GetDefaultServiceThread. 309 * See GetDefaultServiceThread.
310 * @param name String name for the ServerSession creating this thread, used for debug 310 * @param name String name for the ServerSession creating this thread, used for debug
311 * purposes. 311 * purposes.
312 * @returns The a weak pointer newly created service thread. 312 * @returns A reference to the newly created service thread.
313 */ 313 */
314 std::weak_ptr<Kernel::ServiceThread> CreateServiceThread(const std::string& name); 314 Kernel::ServiceThread& CreateServiceThread(const std::string& name);
315 315
316 /** 316 /**
317 * Gets the default host service thread, which executes HLE service requests. Unless service 317 * Gets the default host service thread, which executes HLE service requests. Unless service
318 * requests need to block on the host, the default service thread should be used in favor of 318 * requests need to block on the host, the default service thread should be used in favor of
319 * creating a new service thread. 319 * creating a new service thread.
320 * @returns The a weak pointer for the default service thread. 320 * @returns A reference to the default service thread.
321 */ 321 */
322 std::weak_ptr<Kernel::ServiceThread> GetDefaultServiceThread() const; 322 Kernel::ServiceThread& GetDefaultServiceThread() const;
323 323
324 /** 324 /**
325 * Releases a HLE service thread, instructing KernelCore to free it. This should be called when 325 * Releases a HLE service thread, instructing KernelCore to free it. This should be called when
326 * the ServerSession associated with the thread is destroyed. 326 * the ServerSession associated with the thread is destroyed.
327 * @param service_thread Service thread to release. 327 * @param service_thread Service thread to release.
328 */ 328 */
329 void ReleaseServiceThread(std::weak_ptr<Kernel::ServiceThread> service_thread); 329 void ReleaseServiceThread(Kernel::ServiceThread& service_thread);
330 330
331 /// Workaround for single-core mode when preempting threads while idle. 331 /// Workaround for single-core mode when preempting threads while idle.
332 bool IsPhantomModeForSingleCore() const; 332 bool IsPhantomModeForSingleCore() const;