projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: benchmark QSBR flavor
[urcu.git]
/
tests
/
test_urcu_hash.c
diff --git
a/tests/test_urcu_hash.c
b/tests/test_urcu_hash.c
index be0eaf4f6e746864ff8093503999cb1304144016..ffd8e2f774111625be67d5698caef5216fe11dde 100644
(file)
--- a/
tests/test_urcu_hash.c
+++ b/
tests/test_urcu_hash.c
@@
-66,7
+66,7
@@
static inline pid_t gettid(void)
#else
#define debug_yield_read()
#endif
#else
#define debug_yield_read()
#endif
-#include <urcu.h>
+#include <urcu
-qsbr
.h>
#include <urcu/rculfhash.h>
#include <urcu-call-rcu.h>
#include <urcu/rculfhash.h>
#include <urcu-call-rcu.h>
@@
-369,6
+369,8
@@
void *thr_reader(void *_count)
nr_reads++;
if (unlikely(!test_duration_read()))
break;
nr_reads++;
if (unlikely(!test_duration_read()))
break;
+ if (unlikely((nr_reads & ((1 << 10) - 1)) == 0))
+ rcu_quiescent_state();
}
rcu_unregister_thread();
}
rcu_unregister_thread();
@@
-459,6
+461,8
@@
void *thr_writer(void *_count)
break;
if (unlikely(wdelay))
loop_sleep(wdelay);
break;
if (unlikely(wdelay))
loop_sleep(wdelay);
+ if (unlikely((nr_writes & ((1 << 10) - 1)) == 0))
+ rcu_quiescent_state();
}
rcu_unregister_thread();
}
rcu_unregister_thread();
This page took
0.023812 seconds
and
4
git commands to generate.