mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-30 06:48:22 +00:00
ke/turnstile: add support for multiple owners
This commit is contained in:
@@ -12,14 +12,11 @@ fn turnstile_ctor(ts: *ki.turnstile.Turnstile) void {
|
||||
.link = undefined,
|
||||
.next_free = null,
|
||||
.obj = undefined,
|
||||
.owner = null,
|
||||
.boost_link = undefined,
|
||||
.donated = null,
|
||||
.queues = undefined,
|
||||
.waiters = 0,
|
||||
.owners = .none,
|
||||
};
|
||||
ts.queues[0].init();
|
||||
ts.queues[1].init();
|
||||
ts.reset();
|
||||
}
|
||||
|
||||
/// Initialize the process subsystem.
|
||||
|
||||
Reference in New Issue
Block a user