Skip to content

Commit

Permalink
threading fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Sep 30, 2020
1 parent a90fe2f commit bac3dd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions public/tier0/threadtools.h
Original file line number Diff line number Diff line change
Expand Up @@ -1127,11 +1127,7 @@ class PLATFORM_CLASS CThreadRWLock
private:
void WaitForRead();

#ifdef WIN32
CThreadFastMutex m_mutex;
#else
CThreadMutex m_mutex;
#endif
CThreadMutex m_mutex;
CThreadEvent m_CanWrite;
CThreadEvent m_CanRead;

Expand Down
2 changes: 1 addition & 1 deletion tier0/threadtools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ bool CThreadEvent::Set()
if (condition)
{
condition->notify_one();
condition.reset();
}
condition.reset();
}
}
if (m_bAutoReset)
Expand Down

0 comments on commit bac3dd2

Please sign in to comment.