]> pd.if.org Git - nbds/blobdiff - include/runtime.h
port to 32 bit x86 linux
[nbds] / include / runtime.h
index 9ba7657d92f5d800bcc4381ff98ea177643706f9..c9db783e4a4a806b110f78a742796790b5c256d7 100644 (file)
@@ -2,12 +2,15 @@
  * 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
+
+#include <pthread.h>
+#include "tls.h"
+
+extern DECLARE_THREAD_LOCAL(tid_, int);
 
-void nbd_init (void);
 int nbd_thread_create (pthread_t *restrict thread, int thread_id, void *(*start_routine)(void *), void *restrict arg);
 int nbd_rand (void);
-void rcu_update (void);
 
-#endif//THREADS_H
+#endif//RUNTIME_H