X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=include%2Fruntime.h;h=4fe4cbf67558a989081f48b996e50b5b61e80912;hp=5a87c883b248c490096474701be66c2343301c02;hb=HEAD;hpb=a03cf3b0c40e6c3b8b4877b49a64288cb3fcb919 diff --git a/include/runtime.h b/include/runtime.h index 5a87c88..4fe4cbf 100644 --- a/include/runtime.h +++ b/include/runtime.h @@ -1,15 +1,14 @@ -/* +/* * Written by Josh Dybnis and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ #ifndef RUNTIME_H #define RUNTIME_H +#include #include "tls.h" -extern DECLARE_THREAD_LOCAL(tid_, int); - -int nbd_thread_create (pthread_t *restrict thread, int thread_id, void *(*start_routine)(void *), void *restrict arg); -int nbd_rand (void); +void nbd_thread_init (void); +uint64_t nbd_rand (void); #endif//RUNTIME_H