proxygen
|
#include <ThreadPoolExecutor.h>
Public Member Functions | |
BlockingQueueAddResult | add (ThreadPtr item) override |
ThreadPtr | take () override |
size_t | size () override |
folly::Optional< ThreadPtr > | try_take_for (std::chrono::milliseconds) override |
Public Member Functions inherited from folly::BlockingQueue< ThreadPtr > | |
virtual | ~BlockingQueue ()=default |
virtual BlockingQueueAddResult | add (ThreadPtritem)=0 |
virtual BlockingQueueAddResult | addWithPriority (ThreadPtritem, int8_t) |
virtual uint8_t | getNumPriorities () |
Private Attributes | |
folly::LifoSem | sem_ |
std::mutex | mutex_ |
std::queue< ThreadPtr > | queue_ |
Definition at line 273 of file ThreadPoolExecutor.h.
|
override |
Definition at line 305 of file ThreadPoolExecutor.cpp.
References folly::gen::guard(), folly::gen::move, and mutex_.
Referenced by folly::IOThreadPoolExecutor::stopThreads(), and folly::CPUThreadPoolExecutor::threadRun().
|
overridevirtual |
Implements folly::BlockingQueue< ThreadPtr >.
Definition at line 344 of file ThreadPoolExecutor.cpp.
References folly::gen::guard(), and mutex_.
Referenced by folly::ThreadPoolExecutor::join(), and folly::ThreadPoolExecutor::stop().
|
overridevirtual |
Implements folly::BlockingQueue< ThreadPtr >.
Definition at line 312 of file ThreadPoolExecutor.cpp.
References folly::gen::guard(), folly::gen::move, and mutex_.
Referenced by folly::ThreadPoolExecutor::joinStoppedThreads().
|
overridevirtual |
Implements folly::BlockingQueue< ThreadPtr >.
Definition at line 327 of file ThreadPoolExecutor.cpp.
References folly::gen::guard(), folly::gen::move, mutex_, and folly::none.
|
private |
Definition at line 283 of file ThreadPoolExecutor.h.
|
private |
Definition at line 284 of file ThreadPoolExecutor.h.
|
private |
Definition at line 282 of file ThreadPoolExecutor.h.