skip to Main Content

Why is my double buffer implementation 8x slower on Linux than Windows? – Debian

I've written this implementation of a double buffer: // ping_pong_buffer.hpp #include <vector> #include <mutex> #include <condition_variable> template <typename T> class ping_pong_buffer { public: using single_buffer_type = std::vector<T>; using pointer = typename single_buffer_type::pointer; using const_pointer = typename single_buffer_type::const_pointer; ping_pong_buffer(std::size_t size) :…

VIEW QUESTION
Back To Top
Search