projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
benchmark: Use uatomic for accessing global states
[urcu.git]
/
tests
/
benchmark
/
test_urcu_hash.h
diff --git
a/tests/benchmark/test_urcu_hash.h
b/tests/benchmark/test_urcu_hash.h
index 530a68bcd1b04c304c9c0ec06e712446d41278f9..0ecb781a129b2804b74a5ae8253ae2d7bd030b97 100644
(file)
--- a/
tests/benchmark/test_urcu_hash.h
+++ b/
tests/benchmark/test_urcu_hash.h
@@
-111,8
+111,6
@@
cds_lfht_iter_get_test_node(struct cds_lfht_iter *iter)
return to_test_node(cds_lfht_iter_get_node(iter));
}
return to_test_node(cds_lfht_iter_get_node(iter));
}
-extern volatile int test_go, test_stop;
-
extern unsigned long wdelay;
extern unsigned long duration;
extern unsigned long wdelay;
extern unsigned long duration;
@@
-160,19
+158,6
@@
extern pthread_mutex_t affinity_mutex;
void set_affinity(void);
void set_affinity(void);
-/*
- * returns 0 if test should end.
- */
-static inline int test_duration_write(void)
-{
- return !test_stop;
-}
-
-static inline int test_duration_read(void)
-{
- return !test_stop;
-}
-
extern DECLARE_URCU_TLS(unsigned long long, nr_writes);
extern DECLARE_URCU_TLS(unsigned long long, nr_reads);
extern DECLARE_URCU_TLS(unsigned long long, nr_writes);
extern DECLARE_URCU_TLS(unsigned long long, nr_reads);
This page took
0.023656 seconds
and
4
git commands to generate.