projects
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Takes out backoff in misc data structures
[libcds.git]
/
cds
/
misc
/
seqlock.h
diff --git
a/cds/misc/seqlock.h
b/cds/misc/seqlock.h
index 7427053924627808910ca05eb9a01c41028aefa1..64577696a6a039a7bf006ac91f62ac705ab4eb57 100644
(file)
--- a/
cds/misc/seqlock.h
+++ b/
cds/misc/seqlock.h
@@
-25,11
+25,11
@@
public:
}
int read() {
}
int read() {
- ExpBackoff backoff;
+
//
ExpBackoff backoff;
while (true) {
int old_seq = seq_.load(memory_order_acquire);
if (old_seq % 2 == 1) {
while (true) {
int old_seq = seq_.load(memory_order_acquire);
if (old_seq % 2 == 1) {
- backoff();
+
//
backoff();
continue;
}
continue;
}
@@
-41,12
+41,12
@@
public:
}
void write(int new_data) {
}
void write(int new_data) {
- ExpBackoff backoff;
+
//
ExpBackoff backoff;
while (true) {
// This might be a relaxed too
int old_seq = seq_.load(memory_order_acquire);
if (old_seq % 2 == 1) {
while (true) {
// This might be a relaxed too
int old_seq = seq_.load(memory_order_acquire);
if (old_seq % 2 == 1) {
- backoff();
+
//
backoff();
continue; // Retry
}
continue; // Retry
}