Your opinion will help to improve our service
Leave a feedback >#include <userver/concurrent/queue_helpers.hpp>
Producer side of concurrent queues.
Definition at line 33 of file queue_helpers.hpp.
Public Member Functions | |
Producer (const Producer &)=delete | |
Producer (Producer &&) noexcept=default | |
Producer & | operator= (const Producer &)=delete |
Producer & | operator= (Producer &&other) noexcept |
bool | Push (ValueType &&value, engine::Deadline deadline={}) const |
bool | PushNoblock (ValueType &&value) const |
void | Reset () &&noexcept |
std::shared_ptr< const QueueType > | Queue () const |
Const access to source queue. | |
|
inline |
Definition at line 52 of file queue_helpers.hpp.
|
inlinenoexcept |
Definition at line 46 of file queue_helpers.hpp.
|
inline |
Push an element into queue. May wait asynchronously if the queue is full. Leaves the value
unmodified if the operation does not succeed.
Definition at line 60 of file queue_helpers.hpp.
|
inline |
Try to push an element into queue without blocking. May be used in non-coroutine environment. Leaves the value
unmodified if the operation does not succeed.
Definition at line 70 of file queue_helpers.hpp.
|
inline |
Const access to source queue.
Definition at line 82 of file queue_helpers.hpp.
|
inlinenoexcept |
Definition at line 75 of file queue_helpers.hpp.