projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test_urcu_hash*: initialize TLS seeds
[urcu.git]
/
tests
/
test_urcu_hash_unique.c
diff --git
a/tests/test_urcu_hash_unique.c
b/tests/test_urcu_hash_unique.c
index 40d9e80065d83978af2043f04283a28a1d0a5272..adbbde0db4f0c59ce751feec00cc4276763c57d3 100644
(file)
--- a/
tests/test_urcu_hash_unique.c
+++ b/
tests/test_urcu_hash_unique.c
@@
-66,6
+66,8
@@
void *test_hash_unique_thr_reader(void *_count)
printf_verbose("thread_begin %s, tid %lu\n",
"reader", urcu_get_thread_id());
printf_verbose("thread_begin %s, tid %lu\n",
"reader", urcu_get_thread_id());
+ URCU_TLS(rand_lookup) = urcu_get_thread_id() ^ time(NULL);
+
set_affinity();
rcu_register_thread();
set_affinity();
rcu_register_thread();
@@
-129,6
+131,8
@@
void *test_hash_unique_thr_writer(void *_count)
printf_verbose("thread_begin %s, tid %lu\n",
"writer", urcu_get_thread_id());
printf_verbose("thread_begin %s, tid %lu\n",
"writer", urcu_get_thread_id());
+ URCU_TLS(rand_lookup) = urcu_get_thread_id() ^ time(NULL);
+
set_affinity();
rcu_register_thread();
set_affinity();
rcu_register_thread();
@@
-242,6
+246,8
@@
int test_hash_unique_populate_hash(void)
printf("Starting uniqueness test.\n");
printf("Starting uniqueness test.\n");
+ URCU_TLS(rand_lookup) = urcu_get_thread_id() ^ time(NULL);
+
if (!init_populate)
return 0;
if (!init_populate)
return 0;
This page took
0.022865 seconds
and
4
git commands to generate.