#include <userver/concurrent/queue_helpers.hpp>
Definition at line 29 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 () && |
std::shared_ptr< const QueueType > | Queue () const |
Const access to source queue. | |
|
inline |
Definition at line 47 of file queue_helpers.hpp.
|
inlinenoexcept |
Definition at line 41 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 55 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 65 of file queue_helpers.hpp.
|
inline |
Const access to source queue.
Definition at line 77 of file queue_helpers.hpp.
|
inline |
Definition at line 70 of file queue_helpers.hpp.