summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ace/Service_Config.h5
-rw-r--r--ace/Service_Repository.h11
2 files changed, 13 insertions, 3 deletions
diff --git a/ace/Service_Config.h b/ace/Service_Config.h
index 806bb5b87f3..9f6a1a7acb6 100644
--- a/ace/Service_Config.h
+++ b/ace/Service_Config.h
@@ -89,11 +89,13 @@ public:
static int open (const char program_name[]);
// Performs an open without parsing command-line arguments.
+ // @@ What is its return value?
static int open (int argc, char *argv[]);
// This is the primary entry point into the ACE_Service_Config (the
// constructor just handles simple initializations). It parses
// arguments passed in from the command-line.
+ // @@ What is its return value?
virtual ~ACE_Service_Config (void);
// Perform user-specified close activities and remove dynamic
@@ -102,15 +104,18 @@ public:
static int close (void);
// Tidy up and perform last rites when ACE_Service_Config is shut
// down. This method calls <close_svcs> and <close_singletons>.
+ // @@ What is its return value?
static int close_svcs (void);
// Perform user-specified close hooks on all of the configured
// services in the <Service_Repository>, then delete the
// <Service_Repository> itself.
+ // @@ What is its return value?
static int close_singletons (void);
// Delete the dynamically allocated Singletons (i.e., the <Reactor>,
// <Proactor>, <ReactorEx>, <Thread_Manager>, and <Allocator>).
+ // @@ What is its return value?
// = Reactor event loop management methods.
static int run_reactor_event_loop (void);
diff --git a/ace/Service_Repository.h b/ace/Service_Repository.h
index 0764cb8ab4d..c21127b5008 100644
--- a/ace/Service_Repository.h
+++ b/ace/Service_Repository.h
@@ -58,10 +58,15 @@ public:
int insert (const ACE_Service_Record *);
// Insert a new service record.
- int find (const char[],
- const ACE_Service_Record ** = 0,
+ int find (const char name[],
+ const ACE_Service_Record **srp = 0,
int ignore_suspended = 1);
- // Locate an existing service record.
+ // Locate an entry with <name> in the table. If <ignore_suspended>
+ // is set then only consider services marked as resumed. If the
+ // caller wants the located entry, pass back a pointer to the
+ // located entry via <srp>. If <name> is not found, -1 is returned.
+ // If <name> is found, but it is suspended and the caller wants to
+ // ignore suspended services a -2 is returned.
int remove (const char[]);
// Remove an existing service record.