#include <XrdHttpTpcPool.hh>
Definition at line 38 of file XrdHttpTpcPool.hh.
◆ TPCRequestManager()
Definition at line 396 of file XrdHttpTpcPool.cc.
396 : m_log(
eDest), m_xrdEnv(xrdEnv) {}
static XrdSysError eDest(0,"crypto_")
◆ Produce()
Definition at line 403 of file XrdHttpTpcPool.cc.
404 std::shared_ptr<TPCQueue> queue;
410 m_mutex.lock_shared();
411 std::lock_guard<std::shared_mutex> guard{m_mutex, std::adopt_lock};
412 auto iter = m_pool_map.find(handler.
GetLabel());
413 if (iter != m_pool_map.end()) {
414 if (!iter->second->IsDone()) {
415 queue = iter->second;
423 auto created_queue =
false;
424 std::string queue_name =
"";
426 std::lock_guard<std::shared_mutex> guard(m_mutex);
427 auto iter = m_pool_map.find(handler.
GetLabel());
428 if (iter == m_pool_map.end()) {
429 queue = std::make_shared<TPCQueue>(handler.
GetLabel(), *
this);
430 m_pool_map.insert(iter, {handler.
GetLabel(), queue});
431 created_queue =
true;
434 queue = iter->second;
438 m_log.
Log(
LogMask::Info,
"RequestManager",
"Created new TPC request queue for", queue_name.c_str());
442 return queue->Produce(handler);
std::string GetLabel() const
void Log(int mask, const char *esfx, const char *text1, const char *text2=0, const char *text3=0)
References TPC::TPCRequestManager::TPCRequest::GetLabel(), TPC::Info, and XrdSysError::Log().
◆ SetMaxIdleRequests()
| void TPC::TPCRequestManager::SetMaxIdleRequests |
( |
unsigned |
max_pending_ops | ) |
|
|
inline |
◆ SetMaxWorkers()
| void TPC::TPCRequestManager::SetMaxWorkers |
( |
unsigned |
max_workers | ) |
|
|
inline |
◆ SetWorkerIdleTimeout()
| void TPCRequestManager::SetWorkerIdleTimeout |
( |
std::chrono::steady_clock::duration |
dur | ) |
|
The documentation for this class was generated from the following files: