Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvasilev committed Feb 17, 2015
2 parents 886c4b1 + 5a3e56d commit db6b62b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mingw.condition_variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class condition_variable_any
{
protected:
recursive_mutex mMutex;
atomic<int> mNumWaiters;
HANDLE mSemaphore;
HANDLE mWakeEvent;
atomic<int> mNumWaiters;
public:
typedef HANDLE native_handle_type;
native_handle_type native_handle() {return mSemaphore;}
Expand Down
2 changes: 2 additions & 0 deletions mingw.mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class _NonRecursiveMutex: protected B
#endif
}
protected:
#ifdef STDTHREAD_STRICT_NONRECURSIVE_LOCKS
void checkSetOwnerAfterLock()
{
DWORD self = GetCurrentThreadId();
Expand All @@ -91,6 +92,7 @@ class _NonRecursiveMutex: protected B
}
mOwnerThread = 0;
}
#endif
public:
void unlock()
{
Expand Down

0 comments on commit db6b62b

Please sign in to comment.