#include <XrdClHttpUtil.hh>
Public Member Functions | |
| HandlerQueue (unsigned max_pending_ops) | |
| std::shared_ptr< CurlOperation > | Consume (std::chrono::steady_clock::duration) |
| void | Expire () |
| CURL * | GetHandle () |
| int | PollFD () const |
| void | Produce (std::shared_ptr< CurlOperation > handler) |
| void | RecycleHandle (CURL *) |
| void | ReleaseHandles () |
| void | Shutdown () |
| std::shared_ptr< CurlOperation > | TryConsume () |
Static Public Member Functions | |
| static unsigned | GetDefaultMaxPendingOps () |
| static std::string | GetMonitoringJson () |
HandlerQueue is a deque of curl operations that need to be performed. The object is thread safe and can be waited on via poll().
The fact that it's poll'able is necessary because the multi-curl driver thread is based on polling FD's
Definition at line 191 of file XrdClHttpUtil.hh.
| HandlerQueue::HandlerQueue | ( | unsigned | max_pending_ops | ) |
Definition at line 684 of file XrdClHttpUtil.cc.
References close.
Referenced by XrdClHttp::CurlWorker::Run().
| std::shared_ptr< CurlOperation > HandlerQueue::Consume | ( | std::chrono::steady_clock::duration | dur | ) |
Definition at line 926 of file XrdClHttpUtil.cc.
References read.
| void HandlerQueue::Expire | ( | ) |
Definition at line 824 of file XrdClHttpUtil.cc.
|
inlinestatic |
Definition at line 218 of file XrdClHttpUtil.hh.
| CURL * HandlerQueue::GetHandle | ( | ) |
Definition at line 808 of file XrdClHttpUtil.cc.
|
static |
Definition at line 962 of file XrdClHttpUtil.cc.
|
inline |
Definition at line 200 of file XrdClHttpUtil.hh.
| void HandlerQueue::Produce | ( | std::shared_ptr< CurlOperation > | handler | ) |
Definition at line 887 of file XrdClHttpUtil.cc.
References XrdCl::errOperationExpired, and write.
Referenced by XrdClHttp::CurlReadOp::Continue(), and XrdClHttp::stat_size().
| void HandlerQueue::RecycleHandle | ( | CURL * | curl | ) |
Definition at line 819 of file XrdClHttpUtil.cc.
| void HandlerQueue::ReleaseHandles | ( | ) |
Definition at line 1019 of file XrdClHttpUtil.cc.
| void HandlerQueue::Shutdown | ( | ) |
Definition at line 1011 of file XrdClHttpUtil.cc.
| std::shared_ptr< CurlOperation > HandlerQueue::TryConsume | ( | ) |
Definition at line 975 of file XrdClHttpUtil.cc.
References read.