Tweak assert threshold.

It really bothers me that this is firing.  I should get to the bottom of
it eventually.  Perhaps something is being lazily initialized the first
time a lock is actually locked re-entrantly?
This commit is contained in:
Fletcher Dunn
2020-05-12 14:41:23 -07:00
parent 96ea8abeda
commit ef27e46ab0
@@ -122,7 +122,8 @@ void SteamDatagramTransportLock::OnLocked( const char *pszTag, SteamNetworkingMi
Assert( s_threadIDLockOwner == std::this_thread::get_id() );
// Getting it again had better be nearly instantaneous!
AssertMsg1( usecTimeSpentWaitingOnLock < 100, "Waited %lldusec to take second lock on the same thread??", (long long)usecTimeSpentWaitingOnLock );
// FIXME I don't know why this is firing with a lower threshold. What is it doing?
AssertMsg1( usecTimeSpentWaitingOnLock < 2000, "Waited %lldusec to take second lock on the same thread??", (long long)usecTimeSpentWaitingOnLock );
}
AddTag( pszTag );
}