File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1681,6 +1681,7 @@ class PLATFORM_CLASS CThreadRWLock
16811681class ALIGN8 PLATFORM_CLASS CThreadSpinRWLock
16821682{
16831683public:
1684+ #ifndef WIN32
16841685 CThreadSpinRWLock ()
16851686 {
16861687 m_lockInfo.m_i32 = 0 ;
@@ -1689,6 +1690,9 @@ class ALIGN8 PLATFORM_CLASS CThreadSpinRWLock
16891690 m_iWriteDepth = 0 ;
16901691#endif
16911692 }
1693+ #else
1694+ CThreadSpinRWLock ();
1695+ #endif
16921696
16931697 bool IsLockedForWrite ();
16941698 bool IsLockedForRead ();
@@ -2452,13 +2456,15 @@ inline bool CThreadSpinRWLock::TryLockForWrite_UnforcedInline()
24522456#endif
24532457}
24542458
2459+ #ifndef WIN32
24552460FORCEINLINE void CThreadSpinRWLock::LockForWrite ()
24562461{
24572462 if ( !TryLockForWrite () )
24582463 {
24592464 SpinLockForWrite ();
24602465 }
24612466}
2467+ #endif
24622468
24632469FORCEINLINE bool CThreadSpinRWLock::TryLockForRead ()
24642470{
@@ -2497,6 +2503,7 @@ inline bool CThreadSpinRWLock::TryLockForRead_UnforcedInline()
24972503 return TryLockForRead ();
24982504}
24992505
2506+ #ifndef WIN32
25002507FORCEINLINE void CThreadSpinRWLock::LockForRead ()
25012508{
25022509 if ( !TryLockForRead () )
@@ -2545,6 +2552,7 @@ void CThreadSpinRWLock::UnlockRead()
25452552 }
25462553#endif
25472554}
2555+ #endif
25482556
25492557#else
25502558/* (commented out to reduce distraction in colorized editor, remove entirely when new implementation settles)
You can’t perform that action at this time.
0 commit comments