1 #ifndef CONNECT_SERVICES__WN_CLEANUP__HPP
2 #define CONNECT_SERVICES__WN_CLEANUP__HPP
38 #define NCBI_USE_ERRCODE_X ConnServ_WorkerNode
bool Wait(unsigned seconds)
CGridCleanupThread(SGridWorkerNodeImpl *worker_node, IGridWorkerNodeApp_Listener *listener)
SGridWorkerNodeImpl * m_WorkerNode
virtual void * Main()
Derived (user-created) class must provide a real thread function.
IGridWorkerNodeApp_Listener * m_Listener
set< IWorkerNodeCleanupEventListener * > TListeners
CFastMutex m_ListenersLock
virtual void CallEventHandlers()
virtual void RemoveListener(IWorkerNodeCleanupEventListener *listener)
void RemoveListeners(const TListeners &listeners)
virtual void AddListener(IWorkerNodeCleanupEventListener *listener)
CWorkerNodeJobCleanup(CWorkerNodeCleanup *worker_node_cleanup)
virtual void AddListener(IWorkerNodeCleanupEventListener *listener)
virtual void CallEventHandlers()
CWorkerNodeCleanup * m_WorkerNodeCleanup
virtual void RemoveListener(IWorkerNodeCleanupEventListener *listener)
Listener of events generated by CGridWorkerNodeApp.
Clean-up event source for the worker node.
NetSchedule worker node application.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool TryWait(unsigned int timeout_sec=0, unsigned int timeout_nsec=0)
Timed wait.