#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 167 of file XrdClHttpUtil.hh.
| HandlerQueue::HandlerQueue | ( | unsigned | max_pending_ops | ) |
Definition at line 559 of file XrdClHttpUtil.cc.
References close.
| std::shared_ptr< CurlOperation > HandlerQueue::Consume | ( | std::chrono::steady_clock::duration | dur | ) |
Definition at line 792 of file XrdClHttpUtil.cc.
References read.
| void HandlerQueue::Expire | ( | ) |
Definition at line 691 of file XrdClHttpUtil.cc.
|
inlinestatic |
Definition at line 194 of file XrdClHttpUtil.hh.
| CURL * HandlerQueue::GetHandle | ( | ) |
Definition at line 675 of file XrdClHttpUtil.cc.
|
static |
Definition at line 827 of file XrdClHttpUtil.cc.
|
inline |
Definition at line 176 of file XrdClHttpUtil.hh.
| void HandlerQueue::Produce | ( | std::shared_ptr< CurlOperation > | handler | ) |
Definition at line 754 of file XrdClHttpUtil.cc.
References XrdCl::errOperationExpired, and write.
| void HandlerQueue::RecycleHandle | ( | CURL * | curl | ) |
Definition at line 686 of file XrdClHttpUtil.cc.
| void HandlerQueue::ReleaseHandles | ( | ) |
Definition at line 883 of file XrdClHttpUtil.cc.
| void HandlerQueue::Shutdown | ( | ) |
Definition at line 875 of file XrdClHttpUtil.cc.
| std::shared_ptr< CurlOperation > HandlerQueue::TryConsume | ( | ) |
Definition at line 840 of file XrdClHttpUtil.cc.
References read.