summaryrefslogtreecommitdiff
path: root/ace/Process_Manager.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
commita5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch)
treebcf0a25c3d45a209a6e3ac37b233a4812f29c732 /ace/Process_Manager.cpp
downloadATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz
Initial revision
Diffstat (limited to 'ace/Process_Manager.cpp')
-rw-r--r--ace/Process_Manager.cpp331
1 files changed, 331 insertions, 0 deletions
diff --git a/ace/Process_Manager.cpp b/ace/Process_Manager.cpp
new file mode 100644
index 00000000000..1ef354593f1
--- /dev/null
+++ b/ace/Process_Manager.cpp
@@ -0,0 +1,331 @@
+#if 0
+// $Id$
+
+// Process_Manager.cpp
+#define ACE_BUILD_DLL
+#include "ace/Process_Manager.h"
+
+#if !defined (__ACE_INLINE__)
+#include "ace/Process_Manager.i"
+#endif /* __ACE_INLINE__ */
+
+ACE_ALLOC_HOOK_DEFINE(ACE_Process_Control)
+ACE_ALLOC_HOOK_DEFINE(ACE_Process_Manager)
+
+void
+ACE_Process_Manager::dump (void) const
+{
+ ACE_TRACE ("ACE_Process_Manager::dump");
+}
+
+ACE_Process_Descriptor::ACE_Process_Descriptor (void)
+{
+ ACE_TRACE ("ACE_Process_Descriptor::ACE_Process_Descriptor");
+}
+
+int
+ACE_Process_Manager::resize (size_t size)
+{
+ ACE_TRACE ("ACE_Process_Manager::resize");
+ return -1;
+}
+
+// Create and initialize the table to keep track of the process pool.
+
+int
+ACE_Process_Manager::open (size_t size)
+{
+ ACE_TRACE ("ACE_Process_Manager::open");
+ return -1;
+}
+
+// Initialize the synchronization variables.
+
+ACE_Process_Manager::ACE_Process_Manager (size_t size)
+{
+ ACE_TRACE ("ACE_Process_Manager::ACE_Process_Manager");
+}
+
+// Close up and release all resources.
+
+int
+ACE_Process_Manager::close (void)
+{
+ ACE_TRACE ("ACE_Process_Manager::close");
+ return -1;
+}
+
+ACE_Process_Manager::~ACE_Process_Manager (void)
+{
+ ACE_TRACE ("ACE_Process_Manager::~ACE_Process_Manager");
+ this->close ();
+}
+
+// Call the appropriate OS routine to spawn a process. Should *not*
+// be called with the lock_ held...
+
+int
+ACE_Process_Manager::spawn_i (ACE_THR_FUNC func,
+ void *args,
+ long flags,
+ pid_t *t_id,
+ u_int priority,
+ void *stack,
+ size_t stack_size)
+{
+ ACE_TRACE ("ACE_Process_Manager::spawn_i");
+ return -1;
+}
+
+// Create a new process running FUNC. *Must* be called with the lock_
+// held...
+
+int
+ACE_Process_Manager::spawn (ACE_THR_FUNC func,
+ void *args,
+ long flags,
+ pid_t *t_id,
+ u_int priority,
+ void *stack,
+ size_t stack_size)
+{
+ ACE_TRACE ("ACE_Process_Manager::spawn");
+ return -1;
+}
+
+// Create N new processs running FUNC.
+
+int
+ACE_Process_Manager::spawn_n (int n,
+ ACE_THR_FUNC func,
+ void *args,
+ long flags,
+ u_int priority)
+{
+ ACE_TRACE ("ACE_Process_Manager::spawn_n");
+ return -1;
+}
+
+// Append a process into the pool (does not check for duplicates).
+// Must be called with locks held.
+
+int
+ACE_Process_Manager::append_proc (pid_t t_id,
+ ACE_Process_Descriptor::Process_State proc_state)
+{
+ ACE_TRACE ("ACE_Process_Manager::append_proc");
+
+ return -1;
+}
+
+// Insert a process into the pool (checks for duplicates and doesn't
+// allow them to be inserted twice).
+
+int
+ACE_Process_Manager::insert_proc (pid_t t_id)
+{
+ ACE_TRACE ("ACE_Process_Manager::insert_proc");
+ return -1;
+}
+
+// Remove a process from the pool. Must be called with locks held.
+
+void
+ACE_Process_Manager::remove_proc (int i)
+{
+ ACE_TRACE ("ACE_Process_Manager::remove_proc");
+}
+
+int
+ACE_Process_Manager::resume_proc (int i)
+{
+ ACE_TRACE ("ACE_Process_Manager::resume_proc");
+ return -1;
+}
+
+int
+ACE_Process_Manager::suspend_proc (int i)
+{
+ ACE_TRACE ("ACE_Process_Manager::suspend_proc");
+
+ return -1;
+}
+
+int
+ACE_Process_Manager::kill_proc (int i, int signum)
+{
+ ACE_TRACE ("ACE_Process_Manager::kill_proc");
+
+ return -1;
+}
+
+// Locate the index in the table associated with <t_id>. Must be
+// called with the lock held.
+
+int
+ACE_Process_Manager::find (pid_t t_id)
+{
+ ACE_TRACE ("ACE_Process_Manager::find");
+ return -1;
+}
+
+// Suspend a single process.
+
+int
+ACE_Process_Manager::suspend (pid_t t_id)
+{
+ ACE_TRACE ("ACE_Process_Manager::suspend");
+ return -1;
+}
+
+// Resume a single process.
+
+int
+ACE_Process_Manager::resume (pid_t t_id)
+{
+ ACE_TRACE ("ACE_Process_Manager::resume");
+ return -1;
+}
+
+// Kill a single process.
+int
+ACE_Process_Manager::kill (pid_t t_id, int signum)
+{
+ ACE_TRACE ("ACE_Process_Manager::kill");
+ return -1;
+}
+
+// Get group ids for a particular process id.
+
+int
+ACE_Process_Manager::get_grp (pid_t t_id, int &grp_id)
+{
+ ACE_TRACE ("ACE_Process_Manager::get_grp");
+ return -1;
+}
+
+// Set group ids for a particular process id.
+
+int
+ACE_Process_Manager::set_grp (pid_t t_id, int grp_id)
+{
+ ACE_TRACE ("ACE_Process_Manager::set_grp");
+ return -1;
+}
+
+// Suspend a group of processs.
+
+int
+ACE_Process_Manager::apply_grp (int grp_id,
+ PROC_FUNC func,
+ int arg)
+{
+ ACE_TRACE ("ACE_Process_Manager::apply_grp");
+ return -1;
+}
+
+int
+ACE_Process_Manager::suspend_grp (int grp_id)
+{
+ ACE_TRACE ("ACE_Process_Manager::suspend_grp");
+ return -1;
+}
+
+// Resume a group of processs.
+
+int
+ACE_Process_Manager::resume_grp (int grp_id)
+{
+ ACE_TRACE ("ACE_Process_Manager::resume_grp");
+ return -1;
+}
+
+// Kill a group of processs.
+
+int
+ACE_Process_Manager::kill_grp (int grp_id, int signum)
+{
+ ACE_TRACE ("ACE_Process_Manager::kill_grp");
+ return -1;
+}
+
+int
+ACE_Process_Manager::apply_all (PROC_FUNC func, int arg)
+{
+ ACE_TRACE ("ACE_Process_Manager::apply_all");
+ return -1;
+}
+
+// Resume all processs that are suspended.
+
+int
+ACE_Process_Manager::resume_all (void)
+{
+ ACE_TRACE ("ACE_Process_Manager::resume_all");
+ return -1;
+}
+
+int
+ACE_Process_Manager::suspend_all (void)
+{
+ ACE_TRACE ("ACE_Process_Manager::suspend_all");
+ return -1;
+}
+
+int
+ACE_Process_Manager::kill_all (int sig)
+{
+ ACE_TRACE ("ACE_Process_Manager::kill_all");
+ return -1;
+}
+
+// Must be called when process goes out of scope to clean up its table
+// slot.
+
+void *
+ACE_Process_Manager::exit (void *status)
+{
+ ACE_TRACE ("ACE_Process_Manager::exit");
+ return 0;
+}
+
+// Wait for all the processs to exit.
+
+int
+ACE_Process_Manager::wait (ACE_Time_Value *timeout)
+{
+ ACE_TRACE ("ACE_Process_Manager::wait");
+ return -1;
+}
+
+void
+ACE_Process_Control::dump (void) const
+{
+ ACE_TRACE ("ACE_Process_Control::dump");
+}
+
+// Initialize the process controller.
+
+ACE_Process_Control::ACE_Process_Control (ACE_Process_Manager *t,
+ int insert)
+{
+ ACE_TRACE ("ACE_Process_Control::ACE_Process_Control");
+}
+
+// Automatically kill process on exit.
+
+ACE_Process_Control::~ACE_Process_Control (void)
+{
+ ACE_TRACE ("ACE_Process_Control::~ACE_Process_Control");
+}
+
+// Exit from process (but clean up first).
+
+void *
+ACE_Process_Control::exit (void *exit_status)
+{
+ ACE_TRACE ("ACE_Process_Control::exit");
+ return 0;
+}
+
+#endif