m_Non_locking(
false)
72 source->Prefetch(*
this);
105 return m_Ids.empty();
131 if( --(it->second) < 1 ) {
163: m_DataSource(data_source),
210 boolrelease_token =
false;
211 for(
size_t i= 0; ; ++
i) {
225 if(
i>= token->
m_Ids.size()) {
227release_token =
true;
237}
catch( exception& ) {
SSeqMatch_DS BestResolve(const CSeq_id_Handle &idh)
CDataSource & m_DataSource
void AddRequest(CPrefetchTokenOld_Impl &token)
CPrefetchThreadOld(CDataSource &data_source)
~CPrefetchThreadOld(void)
virtual void * Main(void)
Derived (user-created) class must provide a real thread function.
void AddTokenReference(void)
void x_SetNon_locking(void)
~CPrefetchTokenOld_Impl(void)
void x_InitPrefetch(CScope &scope)
void AddResolvedId(size_t id_idx, TTSE_Lock tse)
void RemoveTokenReference(void)
CBioseq_Handle NextBioseqHandle(CScope &scope)
vector< CSeq_id_Handle > TIds
CSemaphore m_TSESemaphore
CDataSource * GetFirstLoaderSource(void)
void Push(const TValue &elem, const CTimeSpan *timeout=NULL)
Add new element to the end of queue.
TValue Pop(const CTimeSpan *timeout=NULL)
Retrieve an element from the queue.
container_type::iterator iterator
const_iterator find(const key_type &key) const
static unsigned char depth[2 *(256+1+29)+1]
CScope_Impl & GetImpl(void)
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
void Reset(void)
Reset reference object.
#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.
void Wait(void)
Wait on semaphore.
void Post(unsigned int count=1)
Increment the semaphore by "count".
const CharType(& source)[N]
Multi-threading â mutexes; rw-locks; semaphore.
static int match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, uint16_t top_bracket, PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb)
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