NCBI C++ ToolKit
Classes | Typedefs | Enumerations
task_server.hpp File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CSrvRCUUser
 Class to derive from to use RCU mechanism. More...
 
class  CSrvShutdownCallback
 Interface for an object wishing to be notified when server is going to shutdown. More...
 
class  CTaskServer
 Main class representing TaskServer infrastructure. More...
 

Typedefs

typedef Uint2 TSrvThreadNum
 Type for thread number in TaskServer. More...
 
typedef Uint1 TSrvTaskFlags
 
typedef intr::slist_member_hook< intr::tag< SSrvRCUList_tag > > TSrvRCUListHook
 
typedef intr::member_hook< CSrvRCUUser, TSrvRCUListHook, &CSrvRCUUser::m_RCUListHookTSrvRCUListOpt
 
typedef intr::slist< CSrvRCUUser, TSrvRCUListOpt, intr::cache_last< true >, intr::constant_time_size< true > > TSrvRCUList
 
typedef intr::slist_member_hook< intr::tag< SSrvShutdownList_tag > > TSrvSDListHook
 
typedef intr::member_hook< CSrvShutdownCallback, TSrvSDListHook, &CSrvShutdownCallback::m_SDListHookTSDListHookOpt
 
typedef intr::slist< CSrvShutdownCallback, TSDListHookOpt, intr::constant_time_size< false >, intr::cache_last< false > > TShutdownList
 

Enumerations

enum  ESrvTaskFlags {
  fTaskRunnable = 1 << 0 , fTaskQueued = 1 << 1 , fTaskRunning = 1 << 2 , fTaskOnTimer = 1 << 3 ,
  fTaskNeedTermination = 1 << 4 , fTaskTerminated = 1 << 5
}
 Type for flags in CSrvTask. More...
 
enum  ESrvShutdownType { eSrvSlowShutdown , eSrvFastShutdown }
 Types of server shutdown procedures that one can request from CTaskServer. More...
 

Typedef Documentation

◆ TSDListHookOpt

Definition at line 139 of file task_server.hpp.

◆ TShutdownList

typedef intr::slist<CSrvShutdownCallback, TSDListHookOpt, intr::constant_time_size<false>, intr::cache_last<false> > TShutdownList

Definition at line 143 of file task_server.hpp.

◆ TSrvRCUList

typedef intr::slist<CSrvRCUUser, TSrvRCUListOpt, intr::cache_last<true>, intr::constant_time_size<true> > TSrvRCUList

Definition at line 106 of file task_server.hpp.

◆ TSrvRCUListHook

typedef intr::slist_member_hook<intr::tag<SSrvRCUList_tag> > TSrvRCUListHook

Definition at line 65 of file task_server.hpp.

◆ TSrvRCUListOpt

Definition at line 102 of file task_server.hpp.

◆ TSrvSDListHook

typedef intr::slist_member_hook<intr::tag<SSrvShutdownList_tag> > TSrvSDListHook

Definition at line 111 of file task_server.hpp.

◆ TSrvTaskFlags

Definition at line 54 of file task_server.hpp.

◆ TSrvThreadNum

Type for thread number in TaskServer.

Definition at line 42 of file task_server.hpp.

Enumeration Type Documentation

◆ ESrvShutdownType

Types of server shutdown procedures that one can request from CTaskServer.

Enumerator
eSrvSlowShutdown 
eSrvFastShutdown 

Definition at line 147 of file task_server.hpp.

◆ ESrvTaskFlags

Type for flags in CSrvTask.

It's needed only for internal use, shouldn't be necessary outside task_server library.

Enumerator
fTaskRunnable 
fTaskQueued 
fTaskRunning 
fTaskOnTimer 
fTaskNeedTermination 
fTaskTerminated 

Definition at line 46 of file task_server.hpp.

Modified on Fri Sep 20 14:58:05 2024 by modify_doxy.py rev. 669887