Takes out backoff in misc data structures
[libcds.git] / cds / misc / ticket_lock.h
index 233b440..b2d3f88 100644 (file)
@@ -24,14 +24,14 @@ public:
     // First grab a ticket
     unsigned my_ticket = ticket.fetch_add(1, std::memory_order_relaxed);
     // Spinning for my turn
-    ExpBackoff backoff;
+//    ExpBackoff backoff;
     while (true) {
       unsigned my_turn = turn.load(std::memory_order_acquire);
       if (my_turn == my_ticket) {
         // Now it's my turn
         return;
       } else {
-        backoff();
+//        backoff();
       }
     }
   }