diff options
author | James Brown | 2004-02-14 08:56:26 +0000 |
---|---|---|
committer | James Brown | 2004-02-14 08:56:26 +0000 |
commit | 5ee96b4625a2bfa64ba2b06dc37527bf3238d851 (patch) | |
tree | 3c064602f07818996b135304a32bf9ce858e4cdf /common/util.h | |
parent | 6731606837debcc5aafa8b1680db9dae4a3e5887 (diff) | |
download | scummvm-rg350-5ee96b4625a2bfa64ba2b06dc37527bf3238d851.tar.gz scummvm-rg350-5ee96b4625a2bfa64ba2b06dc37527bf3238d851.tar.bz2 scummvm-rg350-5ee96b4625a2bfa64ba2b06dc37527bf3238d851.zip |
Add mutex tracking to make it easier to debug imuse deadlocks
svn-id: r12870
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h index 7b91104523..e05cc12c71 100644 --- a/common/util.h +++ b/common/util.h @@ -81,10 +81,12 @@ public: class StackLock { OSystem::MutexRef _mutex; OSystem *_syst; + char *_mutexName; + void lock(); void unlock(); public: - StackLock(OSystem::MutexRef mutex, OSystem *syst = 0); + StackLock(OSystem::MutexRef mutex, OSystem *syst = 0, char *mutexName = NULL); ~StackLock(); }; |