From 64534542a9c41290c0e2addf0667ed25654ba134 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 5 May 2022 23:01:02 +1000 Subject: [PATCH] Threading: Move a couple of function declarations to correct location --- common/PersistentThread.h | 3 --- common/Threading.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/PersistentThread.h b/common/PersistentThread.h index 734d083160..ffad6882b6 100644 --- a/common/PersistentThread.h +++ b/common/PersistentThread.h @@ -58,9 +58,6 @@ namespace Threading virtual void OnThreadCleanup() = 0; }; - /// Set the name of the current thread - void SetNameOfCurrentThread(const char* name); - // -------------------------------------------------------------------------------------- // pxThread - Helper class for the basics of starting/managing persistent threads. // -------------------------------------------------------------------------------------- diff --git a/common/Threading.h b/common/Threading.h index b74f96ea89..9c3b90b23c 100644 --- a/common/Threading.h +++ b/common/Threading.h @@ -100,6 +100,9 @@ namespace Threading extern u64 GetThreadCpuTime(); extern u64 GetThreadTicksPerSecond(); + /// Set the name of the current thread + extern void SetNameOfCurrentThread(const char* name); + // Yields the current thread and provides cancellation points if the thread is managed by // pxThread. Unmanaged threads use standard Sleep. extern void pxYield(int ms);