renamed and cleaned up export header files to match linux convention
[lunaix-os.git] / lunaix-os / includes / lunaix / ds / spinlock.h
index 557f310bf37245dcfa73b3d58afd60119df76d2e..cea310a4fab1f4434a19c809bd16a2e8746dd05a 100644 (file)
@@ -8,6 +8,9 @@ struct spinlock
     volatile bool flag;
 };
 
+#define DEFINE_SPINLOCK(name)   \
+    struct spinlock name = { .flag = false }
+
 typedef struct spinlock spinlock_t;
 
 /*