MCPcopy Create free account
hub / github.com/cameron314/readerwriterqueue / BlockingReaderWriterCircularBufferAdapter

Class BlockingReaderWriterCircularBufferAdapter

benchmarks/bench.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include "../readerwritercircularbuffer.h" // Mine
26template<typename T>
27class BlockingReaderWriterCircularBufferAdapter : public moodycamel::BlockingReaderWriterCircularBuffer<T> {
28public:
29 BlockingReaderWriterCircularBufferAdapter(std::size_t capacity) : moodycamel::BlockingReaderWriterCircularBuffer<T>(capacity) { }
30 void enqueue(T const& x) { this->wait_enqueue(x); }
31};
32#endif
33#include "systemtime.h"
34#include "../tests/common/simplethread.h"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected