Pool of SID manager objects. More...
#include <XrdClSIDManager.hh>
Classes | |
struct | RecycleSidMgr |
A functional object for handling the deletion of SIDManager objects. More... | |
Public Member Functions | |
~SIDMgrPool () | |
Destructor. | |
std::shared_ptr< SIDManager > | GetSIDMgr (const URL &url) |
void | Recycle (SIDManager *mgr) |
Static Public Member Functions | |
static SIDMgrPool & | Instance () |
Private Member Functions | |
SIDMgrPool () | |
Constructor. | |
SIDMgrPool (const SIDMgrPool &) | |
Deleted constructors. | |
SIDMgrPool (SIDMgrPool &&) | |
SIDMgrPool & | operator= (const SIDMgrPool &) |
Deleted assigment operators. | |
SIDMgrPool & | operator= (SIDMgrPool &&) |
Private Attributes | |
XrdSysMutex | mtx |
std::unordered_map < std::string, SIDManager * > | pool |
Pool of SID manager objects.
XrdCl::SIDMgrPool::~SIDMgrPool | ( | ) | [inline] |
Destructor.
XrdCl::SIDMgrPool::SIDMgrPool | ( | ) | [inline, private] |
Constructor.
Referenced by Instance().
XrdCl::SIDMgrPool::SIDMgrPool | ( | const SIDMgrPool & | ) | [private] |
Deleted constructors.
XrdCl::SIDMgrPool::SIDMgrPool | ( | SIDMgrPool && | ) | [private] |
std::shared_ptr<SIDManager> XrdCl::SIDMgrPool::GetSIDMgr | ( | const URL & | url | ) |
url | : URL for which we need a SIDManager |
static SIDMgrPool& XrdCl::SIDMgrPool::Instance | ( | ) | [inline, static] |
References SIDMgrPool().
Referenced by XrdCl::SIDMgrPool::RecycleSidMgr::operator()().
SIDMgrPool& XrdCl::SIDMgrPool::operator= | ( | SIDMgrPool && | ) | [private] |
SIDMgrPool& XrdCl::SIDMgrPool::operator= | ( | const SIDMgrPool & | ) | [private] |
Deleted assigment operators.
void XrdCl::SIDMgrPool::Recycle | ( | SIDManager * | mgr | ) |
mgr | : the SIDManager object to be recycled |
Referenced by XrdCl::SIDMgrPool::RecycleSidMgr::operator()().
XrdSysMutex XrdCl::SIDMgrPool::mtx [private] |
std::unordered_map<std::string, SIDManager*> XrdCl::SIDMgrPool::pool [private] |
Referenced by XrdCl::SIDMgrPool::RecycleSidMgr::operator()().