projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: cast poll delay return value to void
[urcu.git]
/
tests
/
regression
/
rcutorture.h
diff --git
a/tests/regression/rcutorture.h
b/tests/regression/rcutorture.h
index f8548d811ed8980061716cc797a63524d97524a4..a2411d76403dc9dc051109bfef369ce56ed9a404 100644
(file)
--- a/
tests/regression/rcutorture.h
+++ b/
tests/regression/rcutorture.h
@@
-129,7
+129,7
@@
void *rcu_read_perf_test(void *arg)
uatomic_inc(&nthreadsrunning);
put_thread_offline();
while (goflag == GOFLAG_INIT)
uatomic_inc(&nthreadsrunning);
put_thread_offline();
while (goflag == GOFLAG_INIT)
- poll(NULL, 0, 1);
+
(void)
poll(NULL, 0, 1);
put_thread_online();
while (goflag == GOFLAG_RUN) {
for (i = 0; i < RCU_READ_RUN; i++) {
put_thread_online();
while (goflag == GOFLAG_RUN) {
for (i = 0; i < RCU_READ_RUN; i++) {
@@
-167,7
+167,7
@@
void *rcu_update_perf_test(void *arg)
}
uatomic_inc(&nthreadsrunning);
while (goflag == GOFLAG_INIT)
}
uatomic_inc(&nthreadsrunning);
while (goflag == GOFLAG_INIT)
- poll(NULL, 0, 1);
+
(void)
poll(NULL, 0, 1);
while (goflag == GOFLAG_RUN) {
synchronize_rcu();
n_updates_local++;
while (goflag == GOFLAG_RUN) {
synchronize_rcu();
n_updates_local++;
@@
-190,7
+190,7
@@
void perftestrun(int nthreads, int nreaders, int nupdaters)
cmm_smp_mb();
while (uatomic_read(&nthreadsrunning) < nthreads)
cmm_smp_mb();
while (uatomic_read(&nthreadsrunning) < nthreads)
- poll(NULL, 0, 1);
+
(void)
poll(NULL, 0, 1);
goflag = GOFLAG_RUN;
cmm_smp_mb();
sleep(duration);
goflag = GOFLAG_RUN;
cmm_smp_mb();
sleep(duration);
@@
-289,7
+289,7
@@
void *rcu_read_stress_test(void *arg)
rcu_register_thread();
put_thread_offline();
while (goflag == GOFLAG_INIT)
rcu_register_thread();
put_thread_offline();
while (goflag == GOFLAG_INIT)
- poll(NULL, 0, 1);
+
(void)
poll(NULL, 0, 1);
put_thread_online();
while (goflag == GOFLAG_RUN) {
rcu_read_lock();
put_thread_online();
while (goflag == GOFLAG_RUN) {
rcu_read_lock();
@@
-345,7
+345,7
@@
void *rcu_update_stress_test(void *arg)
struct rcu_head rh;
while (goflag == GOFLAG_INIT)
struct rcu_head rh;
while (goflag == GOFLAG_INIT)
- poll(NULL, 0, 1);
+
(void)
poll(NULL, 0, 1);
while (goflag == GOFLAG_RUN) {
i = rcu_stress_idx + 1;
if (i >= RCU_STRESS_PIPE_LEN)
while (goflag == GOFLAG_RUN) {
i = rcu_stress_idx + 1;
if (i >= RCU_STRESS_PIPE_LEN)
@@
-396,10
+396,10
@@
void *rcu_fake_update_stress_test(void *arg)
}
}
while (goflag == GOFLAG_INIT)
}
}
while (goflag == GOFLAG_INIT)
- poll(NULL, 0, 1);
+
(void)
poll(NULL, 0, 1);
while (goflag == GOFLAG_RUN) {
synchronize_rcu();
while (goflag == GOFLAG_RUN) {
synchronize_rcu();
- poll(NULL, 0, 1);
+
(void)
poll(NULL, 0, 1);
}
return NULL;
}
}
return NULL;
}
This page took
0.024635 seconds
and
4
git commands to generate.