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();
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();
printf("Starting rw test\n");
+ URCU_TLS(rand_lookup) = urcu_get_thread_id() ^ time(NULL);
+
if ((add_unique || add_replace) && init_populate * 10 > init_pool_size) {
printf("WARNING: required to populate %lu nodes (-k), but random "
"pool is quite small (%lu values) and we are in add_unique (-u) or add_replace (-s) mode. Try with a "
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();
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();
printf("Starting uniqueness test.\n");
+ URCU_TLS(rand_lookup) = urcu_get_thread_id() ^ time(NULL);
+
if (!init_populate)
return 0;