1 #ifndef PREFETCH_IMPL__HPP
2 #define PREFETCH_IMPL__HPP
59 typedef vector<CSeq_id_Handle>
TIds;
75 void x_InitPrefetch(
CScope& scope);
76 void x_SetNon_locking(
void);
86 void AddTokenReference(
void);
87 void RemoveTokenReference(
void);
90 void AddResolvedId(
size_t id_idx,
TTSE_Lock tse);
93 bool IsEmpty(
void)
const;
117 void Terminate(
void);
120 virtual void*
Main(
void);
CDataSource & m_DataSource
CSyncQueue< CRef< CPrefetchTokenOld_Impl > > TPrefetchQueue
map< TTSE_Lock, int > TTSE_Map
DECLARE_OPERATOR_BOOL(IsValid())
vector< TTSE_Lock > TFetchedTSEs
CPrefetchTokenOld_Impl(const CPrefetchTokenOld_Impl &)
CPrefetchTokenOld_Impl & operator=(const CPrefetchTokenOld_Impl &)
vector< CSeq_id_Handle > TIds
CSemaphore m_TSESemaphore
Thread-safe queue object with a blocking mechanism.
Include a standard set of the NCBI C++ Toolkit most basic headers.
static unsigned char depth[2 *(256+1+29)+1]
int Main(int argc, const char *argv[])
bool IsValid(const CSeq_point &pt, CScope *scope)
Checks that point >= 0 and point < length of Bioseq.
#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_XOBJMGR_EXPORT
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Multi-threading – classes, functions, and features.
Definition of synchronized queue (CSyncQueue template) and templates related to it.
Pool of generic task-executing threads.