feat(ke): implement qspinlocks

This commit is contained in:
Loïc Grégoire
2026-04-19 10:54:42 -04:00
parent ca6fc21085
commit e235565d81
5 changed files with 288 additions and 39 deletions
+1 -1
View File
@@ -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);
}
};