summaryrefslogtreecommitdiff
path: root/ace/Process_Manager.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /ace/Process_Manager.h
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'ace/Process_Manager.h')
-rw-r--r--ace/Process_Manager.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/ace/Process_Manager.h b/ace/Process_Manager.h
index 62e347b70af..f9ddd2b05f5 100644
--- a/ace/Process_Manager.h
+++ b/ace/Process_Manager.h
@@ -5,25 +5,26 @@
//
// = LIBRARY
// ace
-//
+//
// = FILENAME
-// Process_Manager.h
+// Process_Manager.h
//
// = AUTHOR
-// Doug Schmidt
-//
+// Doug Schmidt
+//
// ============================================================================
#ifndef ACE_PROCESS_MANAGER_H
#define ACE_PROCESS_MANAGER_H
#include "ace/Synch.h"
-#include "ace/Process.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
+# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "ace/Process.h"
+
class ACE_Export ACE_Process_Descriptor
{
// = TITLE
@@ -37,7 +38,7 @@ private:
pid_t proc_id_;
// Unique process ID.
-
+
gid_t grp_id_;
// Unique group ID.
@@ -51,7 +52,7 @@ class ACE_Export ACE_Process_Manager
// Manages a pool of processs.
//
// = DESCRIPTION
- // This class allows operations on groups of processs atomically.
+ // This class allows operations on groups of processs atomically.
public:
friend class ACE_Process_Control;
@@ -64,10 +65,10 @@ public:
ACE_Process_Manager (size_t size = ACE_Process_Manager::DEFAULT_SIZE);
~ACE_Process_Manager (void);
- int open (size_t size = DEFAULT_SIZE);
+ int open (size_t size = DEFAULT_SIZE);
// Initialize the manager with room for SIZE processs.
- int close (void);
+ int close (void);
// Release all resources.
pid_t spawn (ACE_Process_Options &options);
@@ -78,11 +79,11 @@ public:
int spawn_n (size_t n, ACE_Process_Options &options);
// Create N new processs.
-
+
// Returns: on success a unique group id that can be used to control
// all of the processs in the same group. On failure, returns -1.
- int wait (ACE_Time_Value *timeout = 0);
+ int wait (ACE_Time_Value *timeout = 0);
// Block until there are no more processs running or <timeout>
// expires. Returns 0 on success and -1 on failure.