1 #ifndef NETCACHE__THREADS_MAN__HPP
2 #define NETCACHE__THREADS_MAN__HPP
85 pthread_t thread_handle;
Class to derive from to use RCU mechanism.
Task controlling a socket.
Main working entity in TaskServer.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Per-thread structure containing information about sockets.
EServerState seen_srv_state
EThreadState thread_state
virtual void ExecuteRCU(void)
Method implementing RCU job that was scheduled earlier by CallRCU().
virtual ~SSrvThread(void)
Uint2 TSrvThreadNum
Type for thread number in TaskServer.
CRef< CTestThread > thr[k_NumThreadsMax]
TSrvThreadNum GetCntRunningThreads(void)
void RequestThreadStart(SSrvThread *thr)
bool IsThreadRunning(SSrvThread *thr)
void RequestThreadStop(SSrvThread *thr)
SSrvThread * GetCurThread(void)
void ConfigureThreads(const CNcbiRegistry *reg, CTempString section)
void InitCurThreadStorage(void)
bool InitThreadsMan(void)
void RequestThreadRevive(SSrvThread *thr)
void WriteSetup_Threads(CSrvSocketTask &task)
void FinalizeThreadsMan(void)
bool ReConfig_Threads(const CTempString §ion, const CNcbiRegistry &new_reg, string &err_message)