XRootD
Loading...
Searching...
No Matches
GSIStack< T > Class Template Reference

#include <XrdSecProtocolgsi.hh>

+ Collaboration diagram for GSIStack< T >:

Public Member Functions

void Add (T *t)
 
void Del (T *t)
 

Detailed Description

template<class T>
class GSIStack< T >

Definition at line 256 of file XrdSecProtocolgsi.hh.

Member Function Documentation

◆ Add()

template<class T >
void GSIStack< T >::Add ( T * t)
inline

Definition at line 258 of file XrdSecProtocolgsi.hh.

258 {
259 char k[40]; snprintf(k, 40, "%p", t);
260 mtx.Lock();
261 if (!stack.Find(k)) stack.Add(k, t, 0, Hash_count); // We need an additional count
262 stack.Add(k, t, 0, Hash_count);
263 mtx.UnLock();
264 }
@ Hash_count
Definition XrdOucHash.hh:54

References Hash_count, XrdSysMutex::Lock(), and XrdSysMutex::UnLock().

+ Here is the call graph for this function:

◆ Del()

template<class T >
void GSIStack< T >::Del ( T * t)
inline

Definition at line 265 of file XrdSecProtocolgsi.hh.

265 {
266 char k[40]; snprintf(k, 40, "%p", t);
267 mtx.Lock();
268 if (stack.Find(k)) stack.Del(k, Hash_count);
269 mtx.UnLock();
270 }

References Hash_count, XrdSysMutex::Lock(), and XrdSysMutex::UnLock().

Referenced by gsiHSVars::~gsiHSVars().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: