concurrentqueue icon indicating copy to clipboard operation
concurrentqueue copied to clipboard

A fast multi-producer, multi-consumer lock-free concurrent queue for C++11

Results 81 concurrentqueue issues
Sort by recently updated
recently updated
newest added

Hi! So I noticed that TSAN complains about races inside concurrentqueue. I was able to reproduce it with the following minimal example: ``` #include "concurrentqueue.h" #include #include int main() {...

### Description I encountered an issue where the test program runs fine on some computers but crashes after displaying the message box "1" on others. Initially, I suspected it might...

If a function is marked static, the header put into the global fragment and a template ends up causing instantiation and thus call of this static function, well, with modules...

Add the optional `override` specifier to the `ExplicitProducer` and `ImplicitProducer` destructors. Silences the `-Wsuggest-destructor-override` clang warning.

This might be related to 1 or 2 other open issues, but I can't prove it's the same thing. I read the README very carefully, and I want to check...

For example. I have a field `moodycamel::ConcurrentQueue first_n_logs_;` print in gdb shows the following. ```gdb p (*(*(('absl::lts_20230802::container_internal::map_slot_type'*)(tt::PerLearnerFirstN::instances_.settings_ .value.slots_) + 9)).value.second).first_n_logs_ $13 = {static BLOCK_SIZE = 32, static EXPLICIT_BLOCK_EMPTY_COUNTER_THRESHOLD = 32,...

When I compile an `.mm` file (Objective-C++) with `-fno-exceptions` in Clang, `__EXCEPTIONS` is still #define'd to 1. So if that .mm file #includes concurrentqueue.h, it tries to use C++ exceptions,...

Fix CMake deprecation warning. Replicates [this fix](https://github.com/cameron314/readerwriterqueue/commit/3f4f80f4efb840a4483f1b80869d61811f9e8398) that was applied to [readerwriterqueue](https://github.com/cameron314/readerwriterqueue) but not here.

``` CMake Deprecation Warning at concurrentqueue/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value. Or, use the ......

By default, a queue can store 1024 items. However, when multiple threads insert data into the same queue under the ImplicitProducer mode, switching between producers causes try_enqueue to fail before...