mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-28 22:18:22 +00:00
ke/turnstile: make turnstiles more finely locked
Add a per-turnstile lock which is now held across propagation, instead of a per-chain lock. This should hopefully avoid scalability problems if many different turnstiles point to the same bucket.
This commit is contained in:
@@ -15,6 +15,7 @@ fn turnstile_ctor(ts: *kep.turnstile.Turnstile) void {
|
||||
.queues = undefined,
|
||||
.waiters = 0,
|
||||
.owners = .none,
|
||||
.lock = .init(),
|
||||
};
|
||||
ts.reset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user