mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Reorder lock and assert to fix tsan warning
(cherry picked from commit cd704e719b)
This commit is contained in:
@@ -1769,9 +1769,8 @@ void CSteamNetworkingSockets::InternalQueueCallback( int nCallback, int cbCallba
|
||||
AssertMsg( false, "Callback doesn't fit!" );
|
||||
return;
|
||||
}
|
||||
AssertMsg( len( m_vecPendingCallbacks ) < 100, "Callbacks backing up and not being checked. Need to check them more frequently!" );
|
||||
|
||||
m_mutexPendingCallbacks.lock();
|
||||
AssertMsg( len( m_vecPendingCallbacks ) < 100, "Callbacks backing up and not being checked. Need to check them more frequently!" );
|
||||
QueuedCallback &q = *push_back_get_ptr( m_vecPendingCallbacks );
|
||||
q.nCallback = nCallback;
|
||||
q.fnCallback = fnRegisteredFunctionPtr;
|
||||
|
||||
Reference in New Issue
Block a user