mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 15:28:21 +00:00
feat(ke): implement qspinlocks
This commit is contained in:
@@ -58,7 +58,7 @@ pub const ThreadContext = extern struct {
|
||||
|
||||
pub fn switch_to(self: *ThreadContext, new: *ThreadContext) callconv(.c) void {
|
||||
const thread: *ke.Thread = @alignCast(@fieldParentPtr("context", self));
|
||||
do_context_switch(self, new, &thread.lock.locked);
|
||||
do_context_switch(self, new, &thread.lock.inner.locked);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user