]> pd.if.org Git - nbds/blobdiff - include/runtime.h
work in progress
[nbds] / include / runtime.h
index 8d9638ea055008b9182ca5bb1dd7ea76fe5323c4..4fe4cbf67558a989081f48b996e50b5b61e80912 100644 (file)
@@ -1,14 +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
+#ifndef RUNTIME_H
+#define RUNTIME_H
 
-void nbd_init (void);
+#include <pthread.h>
+#include "tls.h"
 
-int nbd_thread_create (pthread_t *restrict thread, int thread_id, void *(*start_routine)(void *), void *restrict arg);
+void nbd_thread_init (void);
+uint64_t nbd_rand (void);
 
-void rcu_update (void);
-
-#endif//THREADS_H
+#endif//RUNTIME_H