Skip to content

Commit

Permalink
fix compile with undefined STDTHREAD_STRICT_NONRECURSIVE_LOCKS
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Feb 13, 2015
1 parent 190c20b commit eb79e44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mingw.mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class _NonRecursiveMutex: protected B
#endif
}
protected:
#ifdef STDTHREAD_STRICT_NONRECURSIVE_LOCKS
void checkSetOwnerAfterLock()
{
DWORD self = GetCurrentThreadId();
Expand All @@ -100,6 +101,7 @@ class _NonRecursiveMutex: protected B
}
mOwnerThread = 0;
}
#endif
public:
void unlock()
{
Expand Down

0 comments on commit eb79e44

Please sign in to comment.