edits
[cdsspec-compiler.git] / benchmark / spsc-bugfix / eventcount.h
index b5d1c2f..b22b6f2 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _EVENTCOUNT_H
 #define _EVENTCOUNT_H
 
-#include <unrelacy.h>
+//#include <unrelacy.h>
 #include <atomic>
 #include <mutex>
 #include <condition_variable>
@@ -22,6 +22,8 @@ public:
 
        void signal()
        {
+               // We might be able to use release here because it basically only needs
+               // to synchronize with the get()
                unsigned cmp = count.fetch_add(0, std::memory_order_seq_cst);
                signal_impl(cmp);
        }