|
| | BasicConsumer (const std::string &name, uint64_t elementSize=1472, uint64_t capacity=144) |
| | create instance.
|
| |
| | BasicConsumer (const BasicConsumer &other)=delete |
| | copy constructor.
|
| |
| BasicConsumer & | operator= (const BasicConsumer &other)=delete |
| | copy assignment operator.
|
| |
| | ~BasicConsumer ()=default |
| | destroy the instance.
|
| |
| int | tryPop (void *element) noexcept |
| | try to pop element from the ring buffer.
|
| |
| int | pop (void *element) noexcept |
| | pop element from the ring buffer.
|
| |
| template<class Rep , class Period > |
| int | timedPop (void *element, std::chrono::duration< Rep, Period > timeout) noexcept |
| | try to pop element from the ring buffer until timeout expire.
|
| |
| uint64_t | pending () const noexcept |
| | get the number of pending elements for reading.
|
| |
| bool | empty () const noexcept |
| | check if the ring buffer is empty.
|
| |
| | BasicQueue (const std::string &name, uint64_t elementSize=1472, uint64_t capacity=144) |
| | create instance.
|
| |
| | BasicQueue (const BasicQueue &other)=delete |
| | copy constructor.
|
| |
| BasicQueue & | operator= (const BasicQueue &other)=delete |
| | copy assignment operator.
|
| |
| virtual | ~BasicQueue () |
| | destroy the instance.
|
| |
| int | open () override |
| | open or create the shared memory segment.
|
| |
| void | close () noexcept override |
| | close the shared memory segment.
|
| |
| const void * | get (uint64_t offset=0) const override |
| | get a const pointer to the shared memory data region at a given offset.
|
| |
| void * | get (uint64_t offset=0) override |
| | get a pointer to the shared memory data region at a given offset.
|
| |
| uint64_t | elementSize () const noexcept |
| | get the element size of the shared memory region.
|
| |
| uint64_t | capacity () const noexcept |
| | get the capacity of the shared memory region.
|
| |
| uint64_t | size () const noexcept override |
| | get the size of the shared memory region.
|
| |
| | SharedMemory (const std::string &name, uint64_t size) |
| | create instance.
|
| |
| virtual | ~SharedMemory () |
| | destroy the instance.
|
| |
| bool | opened () const noexcept |
| | check if shared memory is opened.
|
| |
template<typename Policy>
class join::BasicConsumer< Policy >
shared memory consumer.