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", static_cast<void*>(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 }

References Hash_count.

◆ 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", static_cast<void*>(t));
267 mtx.Lock();
268 if (stack.Find(k)) stack.Del(k, Hash_count);
269 mtx.UnLock();
270 }

References Hash_count.


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