summaryrefslogtreecommitdiff
path: root/ace/Service_Repository.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/Service_Repository.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/Service_Repository.h')
-rw-r--r--ace/Service_Repository.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/ace/Service_Repository.h b/ace/Service_Repository.h
index ca75e8b8777..572d8007bee 100644
--- a/ace/Service_Repository.h
+++ b/ace/Service_Repository.h
@@ -5,13 +5,13 @@
//
// = LIBRARY
// ace
-//
+//
// = FILENAME
// Service_Repository.h
//
// = AUTHOR
-// Doug Schmidt
-//
+// Doug Schmidt
+//
// ============================================================================
#ifndef ACE_SERVICE_REPOSITORY_H
@@ -20,7 +20,7 @@
#include "ace/Service_Types.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
+# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class ACE_Export ACE_Service_Repository
@@ -41,7 +41,7 @@ class ACE_Export ACE_Service_Repository
public:
friend class ACE_Service_Repository_Iterator;
- enum
+ enum
{
DEFAULT_SIZE = 50
};
@@ -78,14 +78,14 @@ public:
static void close_singleton (void);
// Delete the dynamically allocated Singleton.
- // = Search structure operations (all acquire locks as necessary).
+ // = Search structure operations (all acquire locks as necessary).
int insert (const ACE_Service_Type *);
// Insert a new service record.
- int find (const ASYS_TCHAR name[],
- const ACE_Service_Type **srp = 0,
- int ignore_suspended = 1);
+ int find (const ASYS_TCHAR name[],
+ const ACE_Service_Type **srp = 0,
+ int ignore_suspended = 1);
// 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
@@ -117,8 +117,8 @@ public:
private:
int find_i (const ASYS_TCHAR service_name[],
- const ACE_Service_Type ** = 0,
- int ignore_suspended = 1);
+ const ACE_Service_Type ** = 0,
+ int ignore_suspended = 1);
// Locates <service_name>. Must be called without locks being
// held...
@@ -138,8 +138,8 @@ private:
// Must delete the <svc_rep_> if non-0.
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
- ACE_Thread_Mutex lock_;
- // Synchronization variable for the MT_SAFE Repository
+ ACE_Thread_Mutex lock_;
+ // Synchronization variable for the MT_SAFE Repository
#endif /* ACE_MT_SAFE */
};
@@ -153,8 +153,8 @@ class ACE_Export ACE_Service_Repository_Iterator
// since this class is not designed as a "robust" iterator.
public:
// = Initialization and termination methods.
- ACE_Service_Repository_Iterator (ACE_Service_Repository &sr,
- int ignored_suspended = 1);
+ ACE_Service_Repository_Iterator (ACE_Service_Repository &sr,
+ int ignored_suspended = 1);
// Constructor.
~ACE_Service_Repository_Iterator (void);