XRootD
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 261 of file XrdSecProtocolgsi.hh.

Member Function Documentation

◆ Add()

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

Definition at line 263 of file XrdSecProtocolgsi.hh.

263  {
264  char k[40]; snprintf(k, 40, "%p", static_cast<void*>(t));
265  mtx.Lock();
266  if (!stack.Find(k)) stack.Add(k, t, 0, Hash_count); // We need an additional count
267  stack.Add(k, t, 0, Hash_count);
268  mtx.UnLock();
269  }
@ 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 270 of file XrdSecProtocolgsi.hh.

270  {
271  char k[40]; snprintf(k, 40, "%p", static_cast<void*>(t));
272  mtx.Lock();
273  if (stack.Find(k)) stack.Del(k, Hash_count);
274  mtx.UnLock();
275  }

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

+ Here is the call graph for this function:

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