]> pd.if.org Git - nbds/blobdiff - runtime/runtime.c
add hazard pointer implementation. buggy
[nbds] / runtime / runtime.c
index d4946cfc0b47dd8fb8e673915786a41e44eb4958..14a09f9bb11f19b8a828ca1473c3681d0f9f3910 100644 (file)
@@ -18,7 +18,7 @@ typedef struct thread_info {
     void *restrict arg;
 } thread_info_t;
 
-void nbd_init (void) {
+__attribute__ ((constructor)) void nbd_init (void) {
     sranddev();
     INIT_THREAD_LOCAL(rand_seed_);
     INIT_THREAD_LOCAL(tid_);