X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=include%2Fruntime.h;h=4fe4cbf67558a989081f48b996e50b5b61e80912;hp=9ba7657d92f5d800bcc4381ff98ea177643706f9;hb=HEAD;hpb=052506ff082f134f00834f666653819e18d9bddf diff --git a/include/runtime.h b/include/runtime.h index 9ba7657..4fe4cbf 100644 --- a/include/runtime.h +++ b/include/runtime.h @@ -1,13 +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); -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); +#include +#include "tls.h" -#endif//THREADS_H +void nbd_thread_init (void); +uint64_t nbd_rand (void); + +#endif//RUNTIME_H