X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=include%2Fruntime.h;h=4fe4cbf67558a989081f48b996e50b5b61e80912;hp=ff1d245f3f526663351e72c3804c752e20187a54;hb=HEAD;hpb=7d658a03f83e64690d0c71b4733dd3f9a2c60208 diff --git a/include/runtime.h b/include/runtime.h index ff1d245..4fe4cbf 100644 --- a/include/runtime.h +++ b/include/runtime.h @@ -1,4 +1,4 @@ -/* +/* * Written by Josh Dybnis and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ @@ -8,11 +8,7 @@ #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); -uint64_t nbd_rand_seed (int i); -int nbd_next_rand (uint64_t *r); +void nbd_thread_init (void); +uint64_t nbd_rand (void); #endif//RUNTIME_H