Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions GeneralsMD/Code/GameEngine/Include/Common/CriticalSection.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ class ScopedCriticalSection
}
};

#include "mutex.h"

// These should be null on creation then non-null in WinMain or equivalent.
// This allows us to be silently non-threadsafe for WB and other single-threaded apps.
extern CriticalSection *TheAsciiStringCriticalSection;
Expand Down
5 changes: 1 addition & 4 deletions GeneralsMD/Code/GameEngine/Include/Common/ScopedMutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ class ScopedMutex
public:
ScopedMutex(HANDLE mutex) : m_mutex(mutex)
{
DWORD status = WaitForSingleObject(m_mutex, 500);
if (status != WAIT_OBJECT_0) {
DEBUG_LOG(("ScopedMutex WaitForSingleObject timed out - status %d", status));
}
WaitForSingleObject(m_mutex, INFINITE);
}

~ScopedMutex()
Expand Down