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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/include/spinlock.h b/sys/include/spinlock.h
index 3400445..ef81499 100644
--- a/sys/include/spinlock.h
+++ b/sys/include/spinlock.h
@@ -3,9 +3,13 @@
struct spinlock {
int locked;
- const char *name;
+ int tp;
};
-void initlock(struct spinlock *, const char *);
+void initlock(struct spinlock *);
+
+void acquire(struct spinlock *);
+
+void release(struct spinlock *);
#endif /* _LOCK_H */