spsc-bugfix: fix deadlocked signalling bug
authorBrian Norris <banorris@uci.edu>
Wed, 14 Nov 2012 02:39:00 +0000 (18:39 -0800)
committerBrian Norris <banorris@uci.edu>
Wed, 14 Nov 2012 02:39:00 +0000 (18:39 -0800)
spsc-bugfix/queue-relacy.h
spsc-bugfix/queue.h

index 71aac2a..7833576 100644 (file)
@@ -22,7 +22,7 @@ public:
                node* n = new node (data);
                head($)->next.store(n, std::memory_order_release);
                head($) = n;
-               ec.signal_relaxed();
+               ec.signal();
        }
 
        T dequeue()
index c77425f..2e2f494 100644 (file)
@@ -25,7 +25,7 @@ public:
                node* n = new node (data);
                head($)->next.store(n, std::memory_order_release);
                head = n;
-               ec.signal_relaxed();
+               ec.signal();
        }
 
        T dequeue()