Takes out backoff in misc data structures
[libcds.git] / cds / misc / seqlock.h
index 7427053..6457769 100644 (file)
@@ -25,11 +25,11 @@ public:
   }
 
   int read() {
-    ExpBackoff backoff;
+//    ExpBackoff backoff;
     while (true) {
       int old_seq = seq_.load(memory_order_acquire);
       if (old_seq % 2 == 1) {
-        backoff();
+//        backoff();
         continue;
       }
 
@@ -41,12 +41,12 @@ public:
   }
 
   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) {
-        backoff();
+//        backoff();
         continue; // Retry
       }