NAME
ACE_Process_Control -
Used to keep track of a process's activities within its entry
point function.
SYNOPSIS
#include <ace/Process_Manager.h >
class ACE_Process_Control
{
public:
ACE_Process_Control (ACE_Process_Manager *tm, int insert = 0);
~ACE_Process_Control (void);
void *exit (void *status);
void *status (void *status);
void *status (void);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
private:
ACE_Process_Manager *tm_;
void *status_;
};
PUBLIC MEMBERS
ACE_Process_Control (ACE_Process_Manager *tm, int insert = 0);
Initialize the process control object. If INSERT != 0, then
register the process with the ProcessManager.
~ACE_Process_Control (void);
Implicitly kill the process on exit and remove it from its
associated ProcessManager.
void *exit (void *status);
Explicitly kill the process on exit and remove it from its
associated ProcessManager.
void *status (void *status);
Set the exit status (and return existing status).
void *status (void);
Get the current exit status.
void dump (void) const;
Dump the state of an object.
ACE_ALLOC_HOOK_DECLARE;
Declare the dynamic allocation hooks.
PRIVATE MEMBERS
ACE_Process_Manager *tm_;
Pointer to the process manager for this block of code.
void *status_;
Keeps track of the exit status for the process.
AUTHOR
Doug Schmidt
LIBRARY
ace