summaryrefslogtreecommitdiff
path: root/src/internal/lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/lock.h')
-rw-r--r--src/internal/lock.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/internal/lock.h b/src/internal/lock.h
new file mode 100644
index 00000000..c77db6f7
--- /dev/null
+++ b/src/internal/lock.h
@@ -0,0 +1,9 @@
+#ifndef LOCK_H
+#define LOCK_H
+
+hidden void __lock(volatile int *);
+hidden void __unlock(volatile int *);
+#define LOCK(x) __lock(x)
+#define UNLOCK(x) __unlock(x)
+
+#endif