LoggedMutex now works on Linux
This commit is contained in:
parent
9e5308bbb4
commit
d0e006c481
1 changed files with 8 additions and 16 deletions
|
@ -64,23 +64,15 @@ void Mutex::unlock() {
|
|||
|
||||
|
||||
void LoggedMutex::lock() {
|
||||
#ifdef _WINDOWS
|
||||
debuglog(GetCurrentThreadId(), "Locking");
|
||||
#endif
|
||||
debuglog(0, "Locking");
|
||||
Mutex::lock();
|
||||
#ifdef _WINDOWS
|
||||
debuglog(GetCurrentThreadId(), "Locked");
|
||||
#endif
|
||||
debuglog(0, "Locked");
|
||||
}
|
||||
|
||||
void LoggedMutex::unlock() {
|
||||
#ifdef _WINDOWS
|
||||
debuglog(GetCurrentThreadId(), "Unlocking");
|
||||
#endif
|
||||
debuglog(0, "Unlocking");
|
||||
Mutex::unlock();
|
||||
#ifdef _WINDOWS
|
||||
debuglog(GetCurrentThreadId(), "Unlocked");
|
||||
#endif
|
||||
debuglog(0, "Unlocked");
|
||||
}
|
||||
|
||||
MutexLocker::MutexLocker(Mutex *m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue