projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unlikely for tests
[urcu.git]
/
test_qsbr.c
diff --git
a/test_qsbr.c
b/test_qsbr.c
index ff55f8b8515f62185d1241056a1cfc8668bce010..82521efcf83a9babbf743f7741ad05a473efabb6 100644
(file)
--- a/
test_qsbr.c
+++ b/
test_qsbr.c
@@
-165,9
+165,9
@@
void *thr_reader(void *_count)
_rcu_read_unlock();
nr_reads++;
/* QS each 1024 reads */
_rcu_read_unlock();
nr_reads++;
/* QS each 1024 reads */
- if (
(nr_reads & ((1 << 10) - 1)) == 0
)
+ if (
unlikely((nr_reads & ((1 << 10) - 1)) == 0)
)
_rcu_quiescent_state();
_rcu_quiescent_state();
- if (
!test_duration_read(
))
+ if (
unlikely(!test_duration_read()
))
break;
}
break;
}
@@
-207,9
+207,9
@@
void *thr_writer(void *_count)
old->a = 0;
test_array_free(old);
nr_writes++;
old->a = 0;
test_array_free(old);
nr_writes++;
- if (
!test_duration_write(
))
+ if (
unlikely(!test_duration_write()
))
break;
break;
- if (
wdelay
)
+ if (
unlikely(wdelay)
)
usleep(wdelay);
}
usleep(wdelay);
}
This page took
0.02342 seconds
and
4
git commands to generate.