From 3bbefc42d4de0c8d080dd0e687836bb7b61f4959 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 20 Apr 2004 01:55:23 +0000 Subject: [PATCH] name sound mutexes differently --- stepmania/src/RageSound.cpp | 2 ++ stepmania/src/RageThreads.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 4d9dfc5f64..14b76709dd 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -190,6 +190,8 @@ bool RageSound::Load(CString sSoundFilePath, int precache) } } + m_Mutex.SetName( ssprintf("RageSound (%s)", Basename(sSoundFilePath).c_str() ) ); + return true; } diff --git a/stepmania/src/RageThreads.h b/stepmania/src/RageThreads.h index 4234a11aa5..b891f16daf 100644 --- a/stepmania/src/RageThreads.h +++ b/stepmania/src/RageThreads.h @@ -51,7 +51,7 @@ class RageMutex friend struct RageMutexImpl; RageMutexImpl *mut; - const CString m_sName; + CString m_sName; int m_UniqueID; @@ -59,6 +59,7 @@ class RageMutex public: CString GetName() const { return m_sName; } + void SetName( const CString &s ) { m_sName = s; } void Lock(); void Unlock(); bool IsLockedByThisThread() const;