Skip to content

Commit bac3dd2

Browse files
committed
threading fixes
1 parent a90fe2f commit bac3dd2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

public/tier0/threadtools.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,11 +1127,7 @@ class PLATFORM_CLASS CThreadRWLock
11271127
private:
11281128
void WaitForRead();
11291129

1130-
#ifdef WIN32
1131-
CThreadFastMutex m_mutex;
1132-
#else
1133-
CThreadMutex m_mutex;
1134-
#endif
1130+
CThreadMutex m_mutex;
11351131
CThreadEvent m_CanWrite;
11361132
CThreadEvent m_CanRead;
11371133

tier0/threadtools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,8 @@ bool CThreadEvent::Set()
630630
if (condition)
631631
{
632632
condition->notify_one();
633+
condition.reset();
633634
}
634-
condition.reset();
635635
}
636636
}
637637
if (m_bAutoReset)

0 commit comments

Comments
 (0)