#include <userver/concurrent/queue_helpers.hpp>
Definition at line 30 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 49 of file queue_helpers.hpp.
|
inlinenoexcept |
Definition at line 43 of file queue_helpers.hpp.
|
inline |
Push element into queue. May wait asynchronously if the queue is full. Leaves the value
unmodified if the operation does not succeed.
Definition at line 57 of file queue_helpers.hpp.
|
inline |
Try to push 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 67 of file queue_helpers.hpp.
|
inline |
Const access to source queue.
Definition at line 79 of file queue_helpers.hpp.
|
inlinenoexcept |
Definition at line 72 of file queue_helpers.hpp.