12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_MEMCPYPOPQUEUEFUNCTOR_HPP_ 13 #define INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_MEMCPYPOPQUEUEFUNCTOR_HPP_ 65 #endif // INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_MEMCPYPOPQUEUEFUNCTOR_HPP_ MemcpyPopQueueFunctor is a functor used for popping of data from the raw queue with memcpy()
Definition: MemcpyPopQueueFunctor.hpp:26
Top-level namespace of distortos project.
Definition: buttons.hpp:33
void operator()(void *storage) const override
Copies the data from raw queue's storage (with memcpy()).
Definition: MemcpyPopQueueFunctor.cpp:26
QueueFunctor class header.
void *const buffer_
pointer to buffer for popped element
Definition: MemcpyPopQueueFunctor.hpp:55
constexpr MemcpyPopQueueFunctor(void *const buffer, const size_t size)
MemcpyPopQueueFunctor's constructor.
Definition: MemcpyPopQueueFunctor.hpp:37
QueueFunctor is a type-erased interface for functors which execute some action on queue's storage (li...
Definition: QueueFunctor.hpp:31
const size_t size_
size of buffer_, bytes
Definition: MemcpyPopQueueFunctor.hpp:58