BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / a1eaf264431107a223a69ca35d3b916243d7b90e / include / nucleus / object.h

// Related

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 */