Tighten the gate-bound tests: two gates under failing churn, exactly one when detached or settled, three reached under successful churn
Not built or run at this commit: verified on Yggdrasil at the cut's head. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0fbc12275a
commit
5036244778
2 changed files with 70 additions and 5 deletions
|
|
@ -3617,7 +3617,8 @@ namespace GameCult.Caching
|
|||
|
||||
internal readonly object _storeGate = new();
|
||||
|
||||
// Gates the current thread has taken for store calls, read by tests (InternalsVisibleTo) to pin the bound of three per call.
|
||||
// Gates the current thread has taken for store calls, read by tests (InternalsVisibleTo) to pin the two bounds of Gate<T>: at
|
||||
// most two under failing-attach churn (Cache read under the store's gate is then always null), at most three otherwise.
|
||||
[ThreadStatic]
|
||||
internal static int GateTakes;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue