You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert(!inSection && "Concurrent (or re-entrant) enqueue or dequeue operation detected (only one thread at a time may hold the producer or consumer role)");
@@ -689,7 +688,7 @@ class MOODYCAMEL_MAYBE_ALIGN_TO_CACHELINE ReaderWriterQueue
689
688
ReentrantGuard& operator=(ReentrantGuard const&);
690
689
691
690
private:
692
-
bool& inSection;
691
+
weak_atomic<bool>& inSection;
693
692
};
694
693
#endif
695
694
@@ -750,8 +749,8 @@ class MOODYCAMEL_MAYBE_ALIGN_TO_CACHELINE ReaderWriterQueue
0 commit comments