proxygen
folly::BlockingQueue< T > Class Template Referenceabstract

#include <BlockingQueue.h>

Inheritance diagram for folly::BlockingQueue< T >:
folly::LifoSemMPMCQueue< T, kBehavior > folly::PriorityLifoSemMPMCQueue< T, kBehavior > folly::UnboundedBlockingQueue< T > UBQ< T >

Public Member Functions

virtual ~BlockingQueue ()=default
 
virtual BlockingQueueAddResult add (T item)=0
 
virtual BlockingQueueAddResult addWithPriority (T item, int8_t)
 
virtual uint8_t getNumPriorities ()
 
virtual T take ()=0
 
virtual folly::Optional< Ttry_take_for (std::chrono::milliseconds time)=0
 
virtual size_t size ()=0
 

Detailed Description

template<class T>
class folly::BlockingQueue< T >

Definition at line 44 of file BlockingQueue.h.

Constructor & Destructor Documentation

template<class T>
virtual folly::BlockingQueue< T >::~BlockingQueue ( )
virtualdefault

Member Function Documentation

template<class T>
virtual BlockingQueueAddResult folly::BlockingQueue< T >::addWithPriority ( T  item,
int8_t   
)
inlinevirtual

Reimplemented in folly::PriorityLifoSemMPMCQueue< T, kBehavior >.

Definition at line 53 of file BlockingQueue.h.

55  {
56  return add(std::move(item));
57  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
virtual BlockingQueueAddResult add(T item)=0
template<class T>
virtual uint8_t folly::BlockingQueue< T >::getNumPriorities ( )
inlinevirtual

Reimplemented in folly::PriorityLifoSemMPMCQueue< T, kBehavior >.

Definition at line 58 of file BlockingQueue.h.

58  {
59  return 1;
60  }

The documentation for this class was generated from the following file: