proxygen
|
#include <Parallel-inl.h>
Public Member Functions | |
ClosableMPMCQueue (size_t capacity) | |
~ClosableMPMCQueue () | |
void | openProducer () |
void | openConsumer () |
void | closeInputProducer () |
void | closeOutputConsumer () |
size_t | producers () const |
size_t | consumers () const |
template<typename... Args> | |
bool | writeUnlessFull (Args &&...args) noexcept |
template<typename... Args> | |
bool | writeUnlessClosed (Args &&...args) |
bool | readUnlessEmpty (T &out) |
bool | readUnlessClosed (T &out) |
Private Attributes | |
MPMCQueue< T > | queue_ |
std::atomic< size_t > | producers_ {0} |
std::atomic< size_t > | consumers_ {0} |
folly::EventCount | wakeProducer_ |
folly::EventCount | wakeConsumer_ |
Definition at line 33 of file Parallel-inl.h.
|
inlineexplicit |
Definition at line 41 of file Parallel-inl.h.
|
inline |
Definition at line 43 of file Parallel-inl.h.
|
inline |
Definition at line 55 of file Parallel-inl.h.
Referenced by folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::closeInputProducer(), folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::Executor(), and folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::~Executor().
|
inline |
Definition at line 63 of file Parallel-inl.h.
Referenced by folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::closeOutputConsumer(), folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::Executor(), and folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::~Executor().
|
inline |
Definition at line 75 of file Parallel-inl.h.
Referenced by folly::gen::detail::ClosableMPMCQueue< InputDecayed >::closeOutputConsumer(), folly::gen::detail::ClosableMPMCQueue< InputDecayed >::writeUnlessClosed(), folly::gen::detail::ClosableMPMCQueue< InputDecayed >::~ClosableMPMCQueue(), and folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::~Executor().
|
inline |
Definition at line 51 of file Parallel-inl.h.
|
inline |
Definition at line 48 of file Parallel-inl.h.
|
inline |
Definition at line 71 of file Parallel-inl.h.
Referenced by folly::gen::detail::ClosableMPMCQueue< InputDecayed >::closeInputProducer(), folly::gen::detail::ClosableMPMCQueue< InputDecayed >::readUnlessClosed(), folly::gen::detail::ClosableMPMCQueue< InputDecayed >::~ClosableMPMCQueue(), and folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::~Executor().
|
inline |
Definition at line 116 of file Parallel-inl.h.
Referenced by folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Puller::apply(), folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Puller::foreach(), and folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::readUnlessClosed().
|
inline |
Definition at line 107 of file Parallel-inl.h.
|
inline |
Definition at line 90 of file Parallel-inl.h.
Referenced by folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Pusher< all >::compose(), and folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::writeUnlessClosed().
|
inlinenoexcept |
Definition at line 80 of file Parallel-inl.h.
|
private |
|
private |
|
private |
Definition at line 34 of file Parallel-inl.h.
|
private |
Definition at line 38 of file Parallel-inl.h.
|
private |
Definition at line 37 of file Parallel-inl.h.