X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_urcu_ja.c;h=22c336bd77a704cec5c9058d686ed93441dc5f06;hb=b10c8ba83ff83cc8bed4bd62832020f9572e0e92;hp=8c7e7277019edfe33570e5e9df897eebbeff5f68;hpb=9f446823a2f64fbc9b9af984dc797c73f4107310;p=urcu.git diff --git a/tests/test_urcu_ja.c b/tests/test_urcu_ja.c index 8c7e727..22c336b 100644 --- a/tests/test_urcu_ja.c +++ b/tests/test_urcu_ja.c @@ -853,6 +853,8 @@ void *test_ja_rw_thr_reader(void *_count) printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n", "reader", pthread_self(), (unsigned long) gettid()); + URCU_TLS(rand_lookup) = urcu_get_thread_id() ^ time(NULL); + set_affinity(); rcu_register_thread(); @@ -916,6 +918,8 @@ void *test_ja_rw_thr_writer(void *_count) printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n", "writer", pthread_self(), (unsigned long) gettid()); + URCU_TLS(rand_lookup) = urcu_get_thread_id() ^ time(NULL); + set_affinity(); rcu_register_thread();