|
xrootd
|
Handle XRootD stream IDs. More...
#include <XrdClSIDManager.hh>

Public Member Functions | |
| ~SIDManager () | |
| Destructor. More... | |
| Status | AllocateSID (uint8_t sid[2]) |
| void | ReleaseSID (uint8_t sid[2]) |
| Release the SID that is no longer needed. More... | |
| void | TimeOutSID (uint8_t sid[2]) |
| Register a SID of a request that timed out. More... | |
| bool | IsAnySIDOldAs (const time_t tlim) const |
| Check if any SID was allocated at or before a given time. More... | |
| bool | IsTimedOut (uint8_t sid[2]) |
| Check if a SID is timed out. More... | |
| void | ReleaseTimedOut (uint8_t sid[2]) |
| Release a timed out SID. More... | |
| void | ReleaseAllTimedOut () |
| Release all timed out SIDs. More... | |
| uint32_t | NumberOfTimedOutSIDs () const |
| Number of timeout sids. More... | |
| uint16_t | GetNumberOfAllocatedSIDs () const |
| Number of allocated streams. More... | |
Private Member Functions | |
| SIDManager () | |
| Constructor. More... | |
Private Attributes | |
| std::unordered_map< uint16_t, time_t > | pAllocTime |
| std::list< uint16_t > | pFreeSIDs |
| std::set< uint16_t > | pTimeOutSIDs |
| uint16_t | pSIDCeiling |
| XrdSysMutex | pMutex |
| size_t | pRefCount |
Friends | |
| class | SIDMgrPool |
Handle XRootD stream IDs.
|
inlineprivate |
Constructor.
|
inline |
Destructor.
| Status XrdCl::SIDManager::AllocateSID | ( | uint8_t | sid[2] | ) |
Allocate a SID
| sid | a two byte array where the allocated SID should be stored |
| uint16_t XrdCl::SIDManager::GetNumberOfAllocatedSIDs | ( | ) | const |
Number of allocated streams.
| bool XrdCl::SIDManager::IsAnySIDOldAs | ( | const time_t | tlim | ) | const |
Check if any SID was allocated at or before a given time.
| bool XrdCl::SIDManager::IsTimedOut | ( | uint8_t | sid[2] | ) |
Check if a SID is timed out.
|
inline |
Number of timeout sids.
References pMutex, and pTimeOutSIDs.
| void XrdCl::SIDManager::ReleaseAllTimedOut | ( | ) |
Release all timed out SIDs.
| void XrdCl::SIDManager::ReleaseSID | ( | uint8_t | sid[2] | ) |
Release the SID that is no longer needed.
| void XrdCl::SIDManager::ReleaseTimedOut | ( | uint8_t | sid[2] | ) |
Release a timed out SID.
| void XrdCl::SIDManager::TimeOutSID | ( | uint8_t | sid[2] | ) |
Register a SID of a request that timed out.
|
friend |
|
private |
|
private |
|
mutableprivate |
Referenced by NumberOfTimedOutSIDs().
|
mutableprivate |
|
private |
|
private |
Referenced by NumberOfTimedOutSIDs().
1.8.5