-
Why does CheckStreamWindow and CheckConnectionWindow require locking? (Instead of a Volatile.Read()) Is there a reason for
The value is read unprotected in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I wonder if @Tratcher has some insights on this. |
Beta Was this translation helpful? Give feedback.
Interlocked.Read would make sense for CheckStreamWindow, but doesn't matter much since CheckStreamWindow has to lock to update it anyways. Consistency is useful.
SchedulingState is just for debugging.
Do you see these showing up as lock contention in a profiler?