Add urcu-asm.c
[urcu.git] / urcu-asm.c
diff --git a/urcu-asm.c b/urcu-asm.c
new file mode 100644 (file)
index 0000000..19a5b0c
--- /dev/null
@@ -0,0 +1,15 @@
+#include "urcu.h"
+
+void show_read_lock(void)
+{
+       asm volatile ("/* start */");
+       rcu_read_lock();
+       asm volatile ("/* end */");
+}
+
+void show_read_unlock(void)
+{
+       asm volatile ("/* start */");
+       rcu_read_unlock();
+       asm volatile ("/* end */");
+}
This page took 0.023453 seconds and 4 git commands to generate.