summaryrefslogtreecommitdiff
path: root/sys/include/spinlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include/spinlock.h')
-rw-r--r--sys/include/spinlock.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/include/spinlock.h b/sys/include/spinlock.h
new file mode 100644
index 0000000..3400445
--- /dev/null
+++ b/sys/include/spinlock.h
@@ -0,0 +1,11 @@
+#ifndef _LOCK_H
+#define _LOCK_H
+
+struct spinlock {
+ int locked;
+ const char *name;
+};
+
+void initlock(struct spinlock *, const char *);
+
+#endif /* _LOCK_H */