Nucleus
Barry Preemptive and lockless scheduler a1eaf26 (3 years, 1 month ago)
diff --git a/include/nucleus/object.h b/include/nucleus/object.h
index 558d00f..f22e62b 100644
--- a/include/nucleus/object.h
+++ b/include/nucleus/object.h
@@ -15,12 +15,9 @@ typedef int (*compare_callback_t)(void *, void *);
/* Spinlock */
struct Spinlock {
- _Atomic char locked;
+ _Atomic int locked;
refcount_t usage;
- union {
- Task *owner;
- cpu_t cpu;
- };
+ Task *owner;
};
/* Object Type */