#include <XrdSutCache.hh>
Definition at line 49 of file XrdSutCache.hh.
◆ XrdSutCache()
XrdSutCache::XrdSutCache |
( |
int | psize = 89, |
|
|
int | size = 144, |
|
|
int | load = 80 ) |
|
inline |
◆ ~XrdSutCache()
virtual XrdSutCache::~XrdSutCache |
( |
| ) |
|
|
inlinevirtual |
◆ Get() [1/2]
◆ Get() [2/2]
Definition at line 82 of file XrdSutCache.hh.
82 {
83
84
85
86
87
88
89
90 rdlock = false;
91 XrdSutCacheEntry *cent = 0;
92
93
94 XrdSysMutexHelper raii(mtx);
95
96
97 if (!(cent = table.Find(tag))) {
98
99 cent = new XrdSutCacheEntry(tag);
100 int status = 0;
102 if (status) {
103
104 delete cent;
105 return (XrdSutCacheEntry *)0;
106 }
107
108 table.Add(tag, cent);
109 return cent;
110 }
111
112
113
114 int status = 0;
116 if (status) {
117
119 return cent;
120 }
121
122
123 if (condition) {
124 if ((*condition)(cent, arg)) {
125
126 rdlock = true;
127 } else {
128
130 int status = 0;
132 if (status) {
133
135 return cent;
136 }
137 }
138 } else {
139
140 rdlock = true;
141 }
142
143 return cent;
144 }
References kCE_inactive, XrdSysRWLock::ReadLock(), XrdSutCacheEntry::rwmtx, XrdSutCacheEntry::status, XrdSysRWLock::UnLock(), and XrdSysRWLock::WriteLock().
◆ Num()
◆ Reset()
void XrdSutCache::Reset |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: