ke/spinlock: use std.atomic

This commit is contained in:
Loïc Grégoire
2026-07-18 16:11:05 -04:00
parent fddd9865f7
commit d21cefaf10
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -60,7 +60,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.inner.locked);
do_context_switch(self, new, &thread.lock.inner.locked.raw);
}
};