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, I would like to know if below passing `shared_ptr` created potential race condtion, ``` #include #include #include #include #include #include #include #include #include "third_party/concurrentqueue.h" struct Dummy { std::string name_;...

Hi, I see try_dequeue expects a reference it copies the value over; however that may not be desirable especially for non default constructible types. Instead of adding workarounds outside the...

i have a producer which will continuously generate many task objects which need to be processed by its priority . how i can use this concurrentqueue as concurrent priority queue?

Hi, I'm using ConcurrentQueue and BlockingConcurrentQueue with preallocated queue size and, as described at https://github.com/cameron314/concurrentqueue#preallocation-correctly-using-try_enqueue, I'm using the constructor overload that accepts the minimum number of elements (N) and the...

Hello, me again! I just ran the profiling on my M1, figured you may want to check out the results https://gist.github.com/cjappl/6277bb149ad356dc48ec312188a8e757 Note: I had to comment out `bench_empty_dequeue` as it...

inline bool set_many_empty(MOODYCAMEL_MAYBE_UNUSED index_t i, size_t count) { MOODYCAMEL_CONSTEXPR_IF (context == explicit_context && BLOCK_SIZE

Hi, I am getting a segfault in my code, it is a multi-thread program, the core dump is as below, ``` (gdb) bt full #0 0x0000000000441540 in try_dequeue (item=, this=0xbe3c50)...

I would like to allocate memory up-front during initialization step of my application when worker threads have not been created yet. Creating enough number of ProducerTokens and let each thread...

Previously, I had been grabbing concurrentqueue with cmake's `FetchContent` and it worked great. Recently, I switched to using it as a bitbake recipe in an embedded system, where concurrentqueue gets...