projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rcuja: fix randomness seed (per-thread), use u64 keyspace for random range
[urcu.git]
/
tests
/
test_urcu_ja.c
diff --git
a/tests/test_urcu_ja.c
b/tests/test_urcu_ja.c
index 8c7e7277019edfe33570e5e9df897eebbeff5f68..22c336bd77a704cec5c9058d686ed93441dc5f06 100644
(file)
--- 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());
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();
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());
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();
set_affinity();
rcu_register_thread();
This page took
0.022411 seconds
and
4
git commands to generate.