projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wfstack API: rename cds_wfs_first_blocking to cds_wfs_first
[userspace-rcu.git]
/
tests
/
test_urcu_hash_rw.c
diff --git
a/tests/test_urcu_hash_rw.c
b/tests/test_urcu_hash_rw.c
index a789236ecb0c67f875d1f8c0d17cbb28d429d7d4..f30207d000ca039f0c3394b0fefce3bbb41aecb7 100644
(file)
--- a/
tests/test_urcu_hash_rw.c
+++ b/
tests/test_urcu_hash_rw.c
@@
-66,7
+66,8
@@
void *test_hash_rw_thr_reader(void *_count)
struct cds_lfht_iter iter;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
struct cds_lfht_iter iter;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
- "reader", pthread_self(), (unsigned long)gettid());
+ "reader", (unsigned long) pthread_self(),
+ (unsigned long) gettid());
set_affinity();
set_affinity();
@@
-92,7
+93,7
@@
void *test_hash_rw_thr_reader(void *_count)
} else {
URCU_TLS(lookup_ok)++;
}
} else {
URCU_TLS(lookup_ok)++;
}
- debug_yield_read();
+
rcu_
debug_yield_read();
if (caa_unlikely(rduration))
loop_sleep(rduration);
rcu_read_unlock();
if (caa_unlikely(rduration))
loop_sleep(rduration);
rcu_read_unlock();
@@
-107,7
+108,8
@@
void *test_hash_rw_thr_reader(void *_count)
*count = URCU_TLS(nr_reads);
printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
*count = URCU_TLS(nr_reads);
printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
- "reader", pthread_self(), (unsigned long)gettid());
+ "reader", (unsigned long) pthread_self(),
+ (unsigned long) gettid());
printf_verbose("readid : %lx, lookupfail %lu, lookupok %lu\n",
pthread_self(), URCU_TLS(lookup_fail),
URCU_TLS(lookup_ok));
printf_verbose("readid : %lx, lookupfail %lu, lookupok %lu\n",
pthread_self(), URCU_TLS(lookup_fail),
URCU_TLS(lookup_ok));
@@
-124,7
+126,8
@@
void *test_hash_rw_thr_writer(void *_count)
int ret;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
int ret;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
- "writer", pthread_self(), (unsigned long)gettid());
+ "writer", (unsigned long) pthread_self(),
+ (unsigned long) gettid());
set_affinity();
set_affinity();
@@
-209,9
+212,10
@@
void *test_hash_rw_thr_writer(void *_count)
rcu_unregister_thread();
printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
rcu_unregister_thread();
printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
- "writer", pthread_self(), (unsigned long)gettid());
+ "writer", (unsigned long) pthread_self(),
+ (unsigned long) gettid());
printf_verbose("info id %lx: nr_add %lu, nr_addexist %lu, nr_del %lu, "
printf_verbose("info id %lx: nr_add %lu, nr_addexist %lu, nr_del %lu, "
- "nr_delnoent %lu\n", pthread_self(), URCU_TLS(nr_add),
+ "nr_delnoent %lu\n",
(unsigned long)
pthread_self(), URCU_TLS(nr_add),
URCU_TLS(nr_addexist), URCU_TLS(nr_del),
URCU_TLS(nr_delnoent));
count->update_ops = URCU_TLS(nr_writes);
URCU_TLS(nr_addexist), URCU_TLS(nr_del),
URCU_TLS(nr_delnoent));
count->update_ops = URCU_TLS(nr_writes);
This page took
0.024002 seconds
and
4
git commands to generate.