#include <ThreadQueue.h>
Definition at line 10 of file ThreadQueue.h.
mf::service::ThreadQueue::ThreadQueue |
( |
| ) |
|
Definition at line 7 of file ThreadQueue.cc.
static constexpr int buf_size
static constexpr int buf_depth
virtual mf::service::ThreadQueue::~ThreadQueue |
( |
| ) |
|
|
virtualdefault |
mf::service::ThreadQueue::ThreadQueue |
( |
ThreadQueue const & |
| ) |
|
|
delete |
void mf::service::ThreadQueue::consume |
( |
OpCode & |
opcode, |
|
|
void *& |
operand |
|
) |
| |
Definition at line 21 of file ThreadQueue.cc.
24 char* slot_p =
static_cast<char*
>(
b.buffer());
25 std::memcpy(&opcode, slot_p + 0,
sizeof(
OpCode));
26 std::memcpy(&operand, slot_p +
sizeof(
OpCode),
sizeof(
void*));
static constexpr int buf_size
OperateBuffer< ConsumerType > ConsumerBuffer
void mf::service::ThreadQueue::produce |
( |
OpCode |
opcode, |
|
|
void * |
operand |
|
) |
| |
Definition at line 10 of file ThreadQueue.cc.
13 char* slot_p =
static_cast<char*
>(
b.buffer());
15 std::memcpy(slot_p + 0, &o,
sizeof(
OpCode));
16 std::memcpy(slot_p +
sizeof(
OpCode), &v,
sizeof(
void*));
static constexpr int buf_size
OperateBuffer< ProducerType > ProducerBuffer
constexpr int mf::service::ThreadQueue::buf_depth {500} |
|
staticprivate |
constexpr int mf::service::ThreadQueue::buf_size {sizeof(OpCode) + sizeof(void*)} |
|
staticprivate |
The documentation for this class was generated from the following files: