]> pd.if.org Git - nbds/blob - include/runtime.h
add port of perf test from high-scale-lib
[nbds] / include / runtime.h
1 /* 
2  * Written by Josh Dybnis and released to the public domain, as explained at
3  * http://creativecommons.org/licenses/publicdomain
4  */
5 #ifndef RUNTIME_H
6 #define RUNTIME_H
7
8 #include <pthread.h>
9 #include "tls.h"
10
11 extern DECLARE_THREAD_LOCAL(tid_, int);
12
13 int nbd_thread_create (pthread_t *restrict thread, int thread_id, void *(*start_routine)(void *), void *restrict arg);
14 int nbd_rand (void);
15 uint64_t nbd_rand_seed (int i);
16 int nbd_next_rand (uint64_t *r);
17
18 #endif//RUNTIME_H