proxygen
|
#include <UnboundedBlockingQueue.h>
Public Member Functions | |
virtual | ~UnboundedBlockingQueue () |
BlockingQueueAddResult | add (T item) override |
T | take () override |
folly::Optional< T > | try_take_for (std::chrono::milliseconds time) override |
size_t | size () override |
Public Member Functions inherited from folly::BlockingQueue< T > | |
virtual | ~BlockingQueue ()=default |
virtual BlockingQueueAddResult | addWithPriority (T item, int8_t) |
virtual uint8_t | getNumPriorities () |
Private Attributes | |
LifoSem | sem_ |
UMPMCQueue< T, false, 6 > | queue_ |
Definition at line 26 of file UnboundedBlockingQueue.h.
|
inlinevirtual |
Definition at line 28 of file UnboundedBlockingQueue.h.
|
inlineoverridevirtual |
Implements folly::BlockingQueue< T >.
Definition at line 30 of file UnboundedBlockingQueue.h.
References folly::gen::move, folly::detail::LifoSemBase< Handoff, Atom >::post(), folly::UnboundedBlockingQueue< T >::queue_, and folly::UnboundedBlockingQueue< T >::sem_.
Referenced by TEST().
|
inlineoverridevirtual |
Implements folly::BlockingQueue< T >.
Definition at line 53 of file UnboundedBlockingQueue.h.
References folly::UnboundedBlockingQueue< T >::queue_.
Referenced by TEST().
|
inlineoverridevirtual |
Implements folly::BlockingQueue< T >.
Definition at line 35 of file UnboundedBlockingQueue.h.
References folly::UnboundedBlockingQueue< T >::queue_, folly::UnboundedBlockingQueue< T >::sem_, folly::T, and folly::detail::LifoSemBase< Handoff, Atom >::wait().
Referenced by TEST().
|
inlineoverridevirtual |
Implements folly::BlockingQueue< T >.
Definition at line 43 of file UnboundedBlockingQueue.h.
References folly::gen::move, folly::none, folly::UnboundedBlockingQueue< T >::queue_, folly::UnboundedBlockingQueue< T >::sem_, folly::T, and folly::detail::LifoSemBase< Handoff, Atom >::try_wait_for().
|
private |
Definition at line 59 of file UnboundedBlockingQueue.h.
Referenced by folly::UnboundedBlockingQueue< T >::add(), folly::UnboundedBlockingQueue< T >::size(), folly::UnboundedBlockingQueue< T >::take(), and folly::UnboundedBlockingQueue< T >::try_take_for().
|
private |
Definition at line 58 of file UnboundedBlockingQueue.h.
Referenced by folly::UnboundedBlockingQueue< T >::add(), folly::UnboundedBlockingQueue< T >::take(), and folly::UnboundedBlockingQueue< T >::try_take_for().