NCBI C++ ToolKit
|
Search Toolkit Book for CRunningJobLimit
#include "grid_worker_impl.hpp"
(Private to src/connect/services
.)
Public Member Functions | |
CRunningJobLimit () | |
void | ResetJobCounter (unsigned max_number) |
bool | CountJob (const string &job_group, CJobRunRegistration *job_run_registration) |
Private Types | |
typedef map< string, unsigned > | TJobCounter |
Private Attributes | |
unsigned | m_MaxNumber |
CFastMutex | m_Mutex |
TJobCounter | m_Counter |
Friends | |
class | CJobRunRegistration |
Definition at line 107 of file grid_worker_impl.hpp.
|
private |
Definition at line 124 of file grid_worker_impl.hpp.
|
inline |
Definition at line 110 of file grid_worker_impl.hpp.
bool CRunningJobLimit::CountJob | ( | const string & | job_group, |
CJobRunRegistration * | job_run_registration | ||
) |
Definition at line 514 of file grid_worker.cpp.
References map_checker< Container >::insert(), m_Counter, m_MaxNumber, m_Mutex, and CJobRunRegistration::RegisterRun().
Referenced by SWorkerNodeJobContextImpl::x_RunJob().
|
inline |
Definition at line 112 of file grid_worker_impl.hpp.
References m_MaxNumber.
Referenced by SGridWorkerNodeImpl::Run().
|
friend |
Definition at line 118 of file grid_worker_impl.hpp.
|
private |
Definition at line 125 of file grid_worker_impl.hpp.
Referenced by CountJob(), and CJobRunRegistration::~CJobRunRegistration().
|
private |
Definition at line 120 of file grid_worker_impl.hpp.
Referenced by CountJob(), and ResetJobCounter().
|
private |
Definition at line 122 of file grid_worker_impl.hpp.
Referenced by CountJob(), and CJobRunRegistration::~CJobRunRegistration().