time_t RetryTime(
void);
58 boolNeedCalibration(
void);
60time_t m_ReasonableRefreshDelay;
61 intm_RequestsDevider;
65time_t m_LastCalibrated;
81 voidReset(
CTimer&timer);
87 boolNeedRefresh(
CTimer&timer)
const;
96 #if defined(NCBI_THREADS) 104 #if defined(NCBI_THREADS) 108 voidSetSize(
int size);
112 inty=x%m_size; spread[y]++;
returnm_Locks[y];
115 intSelect(
unsigned key)
const 119 template<
classA>
intSelect(
A*
a)
const 121 returnSelect((
unsigned long)
a/
sizeof(
A));
137 intSelect(
unsigned)
const 141 template<
classA>
intSelect(
A*
a)
const 164 unsignedm_SlowTraverseMode;
169 typedefSLeveledMutex TLMutex;
180CGBLGuard(TLMutex& lm,
EState orig,
const char*loc=
"",
intselect=-1);
181CGBLGuard(TLMutex& lm,
const char*loc=
"");
182CGBLGuard(CGBLGuard &
g,
const char*loc);
185 template<
classA>
voidLock(
A*
a) { Switch(
eBoth,
a); }
186 template<
classA>
voidUnlock(
A*
a) { Switch(eMain,
a); }
187 voidLock(
unsigned key) { Switch(
eBoth,
key); }
188 voidUnlock(
unsigned key) { Switch(eMain,
key); }
189 voidLock() { Switch(eMain);};
190 voidUnlock() { Switch(
eNone);};
191 voidLocal() { Switch(eLocal);};
195 #if defined (NCBI_THREADS) 202 template<
classA>
voidSwitch(
EStatenewstate,
A*
a)
204Select(m_Locks->m_Pool.Select(
a));
207 voidSwitch(
EStatenewstate,
unsigned key)
209Select(m_Locks->m_Pool.Select(
key));
212 voidSwitch(
EStatenewstate);
215 template<
classA>
voidSwitch(
EStatenewstate,
A*
a) {}
216 voidSwitch(
EState,
unsigned) {}
225 template<
classKey,
classInfo>
246 #ifdef LOAD_INFO_MAP_CHECK 252 #ifdef LOAD_INFO_MAP_CHECK 261 #ifdef LOAD_INFO_MAP_CHECK 265 #ifdef LOAD_INFO_MAP_ALWAYS_CLEAR 275pair<TIndexIter, bool> ins =
280 #ifdef LOAD_INFO_MAP_CHECK 290 #ifdef LOAD_INFO_MAP_NO_SPLICE 292 m_Queue.erase(ins.first->second);
300ins.first->second =
m_Queue.begin();
302 #ifdef LOAD_INFO_MAP_CHECK 306 return m_Queue.begin()->second;
332 if( !
m_Queue.back().second->ReferencedOnlyOnce() ) {
@ eBoth
Both preliminary and traceback stages.
TLock::TReadLockGuard TReadLockGuard
size_t GetMaxSize(void) const
void SetMaxSize(size_t max_size)
CLoadInfoMap(size_t max_size=0)
TLock::TWriteLockGuard TWriteLockGuard
CRef< Info > Get(const Key &key)
pair< Key, CRef< Info > > TQueueValue
TQueue::iterator TQueueIter
map< Key, TQueueIter > TIndex
TIndex::value_type TIndexValue
list< TQueueValue > TQueue
TIndex::iterator TIndexIter
void operator=(const CLoadInfoMap< Key, Info > &)
CLoadInfoMap(const CLoadInfoMap< Key, Info > &)
container_type::iterator iterator
iterator_bool insert(const value_type &val)
container_type::value_type value_type
Include a standard set of the NCBI C++ Toolkit most basic headers.
void Info(CExceptionArgs_Base &args)
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_XLOADER_GENBANK_EXPORT
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig
const struct ncbi::grid::netcache::search::fields::SIZE size
const struct ncbi::grid::netcache::search::fields::KEY key
static PyObject * Time(PyObject *self, PyObject *args)
Multi-threading â mutexes; rw-locks; semaphore.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Defines: CTimeFormat - storage class for time format.
int g(Seg_Gsm *spe, Seq_Mtf *psm, Thd_Gsm *tdg)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4