#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 555 of file XrdClHttpUtil.cc.
References close.
| std::shared_ptr< CurlOperation > HandlerQueue::Consume | ( | std::chrono::steady_clock::duration | dur | ) |
Definition at line 788 of file XrdClHttpUtil.cc.
References read.
| void HandlerQueue::Expire | ( | ) |
Definition at line 687 of file XrdClHttpUtil.cc.
|
inlinestatic |
Definition at line 194 of file XrdClHttpUtil.hh.
| CURL * HandlerQueue::GetHandle | ( | ) |
Definition at line 671 of file XrdClHttpUtil.cc.
|
static |
Definition at line 823 of file XrdClHttpUtil.cc.
|
inline |
Definition at line 176 of file XrdClHttpUtil.hh.
| void HandlerQueue::Produce | ( | std::shared_ptr< CurlOperation > | handler | ) |
Definition at line 750 of file XrdClHttpUtil.cc.
References XrdCl::errOperationExpired, and write.
| void HandlerQueue::RecycleHandle | ( | CURL * | curl | ) |
Definition at line 682 of file XrdClHttpUtil.cc.
| void HandlerQueue::ReleaseHandles | ( | ) |
Definition at line 879 of file XrdClHttpUtil.cc.
| void HandlerQueue::Shutdown | ( | ) |
Definition at line 871 of file XrdClHttpUtil.cc.
| std::shared_ptr< CurlOperation > HandlerQueue::TryConsume | ( | ) |
Definition at line 836 of file XrdClHttpUtil.cc.
References read.