Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

children Class Reference

List of all members.

Static Public Member Functions

static void init (int running, int pending) throw ()
static bool my_turn () throw ()
static int wait_for (pid_t pid, SRPC *client, bool &killed) throw ()
static void killer_body () throw ()
static void call_failed () throw ()

Static Private Attributes

static Basics::mutex mu
static int maxChildren
static int maxPending
static child_infoinfo
static int nInUse
static int nPending
static Basics::thread killer
static CondSeq pending

Friends

void Info (SRPC *srpc, int intfVersion, int procId) throw (SRPC::failure)

Classes

class  child_info

Member Function Documentation

void children::call_failed  )  throw () [static]
 

Definition at line 566 of file RunToolDaemon.C.

References Basics::mutex::lock(), mu, nInUse, nPending, pending, Sequence< Elem, elem_ptrfree >::remlo(), Basics::cond::signal(), Sequence< Elem, elem_ptrfree >::size(), and Basics::mutex::unlock().

void children::init int  running,
int  pending
throw () [static]
 

Definition at line 389 of file RunToolDaemon.C.

References Basics::thread::fork_and_detach(), info, killer, maxChildren, maxPending, NEW_ARRAY, nInUse, and nPending.

Referenced by RunToolServerInit().

void children::killer_body  )  throw () [static]
 

Definition at line 529 of file RunToolDaemon.C.

References SRPC::alive(), children::child_info::client, info, children::child_info::killed, Basics::mutex::lock(), maxChildren, mu, Basics::thread::pause(), children::child_info::pid, Basics::mutex::unlock(), and UNUSED.

bool children::my_turn  )  throw () [static]
 

Definition at line 399 of file RunToolDaemon.C.

References Sequence< Elem, elem_ptrfree >::addhi(), Basics::mutex::lock(), maxChildren, maxPending, mu, nInUse, nPending, pending, Sequence< Elem, elem_ptrfree >::size(), Basics::mutex::unlock(), and Basics::cond::wait().

int children::wait_for pid_t  pid,
SRPC client,
bool &  killed
throw () [static]
 

Definition at line 460 of file RunToolDaemon.C.

References children::child_info::client, info, children::child_info::killed, Basics::mutex::lock(), maxChildren, mu, nInUse, nPending, pending, children::child_info::pid, Sequence< Elem, elem_ptrfree >::remlo(), Basics::cond::signal(), Sequence< Elem, elem_ptrfree >::size(), SYSERROR, Basics::mutex::unlock(), and UNUSED.


Friends And Related Function Documentation

void Info SRPC srpc,
int  intfVersion,
int  procId
throw (SRPC::failure) [friend]
 

Definition at line 915 of file RunToolDaemon.C.


Member Data Documentation

children::child_info * children::info [static, private]
 

Definition at line 240 of file RunToolDaemon.C.

Referenced by init(), killer_body(), and wait_for().

Basics::thread children::killer [static, private]
 

Definition at line 241 of file RunToolDaemon.C.

Referenced by init().

int children::maxChildren [static, private]
 

Definition at line 236 of file RunToolDaemon.C.

Referenced by Info(), init(), killer_body(), my_turn(), and wait_for().

int children::maxPending [static, private]
 

Definition at line 237 of file RunToolDaemon.C.

Referenced by Info(), init(), and my_turn().

Basics::mutex children::mu [static, private]
 

Definition at line 235 of file RunToolDaemon.C.

Referenced by call_failed(), Info(), killer_body(), my_turn(), and wait_for().

int children::nInUse [static, private]
 

Definition at line 238 of file RunToolDaemon.C.

Referenced by call_failed(), Info(), init(), my_turn(), and wait_for().

int children::nPending [static, private]
 

Definition at line 239 of file RunToolDaemon.C.

Referenced by call_failed(), Info(), init(), my_turn(), and wait_for().

CondSeq children::pending [static, private]
 

Definition at line 242 of file RunToolDaemon.C.

Referenced by call_failed(), my_turn(), and wait_for().


The documentation for this class was generated from the following file:
Generated on Mon May 8 00:49:08 2006 for Vesta by  doxygen 1.4.2