Skip to content

Commit

Permalink
Merge pull request #3 from springlobby/master
Browse files Browse the repository at this point in the history
fix compile with undefined STDTHREAD_STRICT_NONRECURSIVE_LOCKS
  • Loading branch information
alxvasilev committed Feb 13, 2015
2 parents 4c7d609 + eb79e44 commit 5a3e56d
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 5a3e56d

Please sign in to comment.