]> pd.if.org Git - nbds/blobdiff - include/runtime.h
Some refactoring. WARNING: tests not passing!
[nbds] / include / runtime.h
diff --git a/include/runtime.h b/include/runtime.h
new file mode 100644 (file)
index 0000000..8d9638e
--- /dev/null
@@ -0,0 +1,14 @@
+/* 
+ * Written by Josh Dybnis and released to the public domain, as explained at
+ * http://creativecommons.org/licenses/publicdomain
+ */
+#ifndef THREADS_H
+#define THREADS_H
+
+void nbd_init (void);
+
+int nbd_thread_create (pthread_t *restrict thread, int thread_id, void *(*start_routine)(void *), void *restrict arg);
+
+void rcu_update (void);
+
+#endif//THREADS_H