diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 0902828269fb1a42ed23c208fd61bac76aaddc13 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /ace/SV_Semaphore_Complex.h | |
parent | e7788cff873f30e65d44d38db7cfafc175f748a3 (diff) | |
download | ATCD-0902828269fb1a42ed23c208fd61bac76aaddc13.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'ace/SV_Semaphore_Complex.h')
-rw-r--r-- | ace/SV_Semaphore_Complex.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/ace/SV_Semaphore_Complex.h b/ace/SV_Semaphore_Complex.h index 11b9d4ecbb6..4f904e56468 100644 --- a/ace/SV_Semaphore_Complex.h +++ b/ace/SV_Semaphore_Complex.h @@ -5,13 +5,13 @@ // // = LIBRARY // ace -// +// // = FILENAME // ACE_SV_Semaphore_Complex.h // // = AUTHOR -// Doug Schmidt -// +// Doug Schmidt +// // ============================================================================ #ifndef ACE_SV_SEMAPHORE_COMPLEX_H @@ -20,7 +20,7 @@ #include "ace/SV_Semaphore_Simple.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once +# pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ class ACE_Export ACE_SV_Semaphore_Complex : private ACE_SV_Semaphore_Simple @@ -55,39 +55,39 @@ class ACE_Export ACE_SV_Semaphore_Complex : private ACE_SV_Semaphore_Simple // the array of SV_Semaphores (which may be sized by the user // in the constructor). public: - enum + enum { - ACE_CREATE = IPC_CREAT, + ACE_CREATE = IPC_CREAT, ACE_OPEN = 0 }; // = Initialization and termination methods. ACE_SV_Semaphore_Complex (void); ACE_SV_Semaphore_Complex (key_t key, - int create = ACE_SV_Semaphore_Complex::ACE_CREATE, - int initial_value = 1, - u_short nsems = 1, - int perms = ACE_DEFAULT_FILE_PERMS); - ACE_SV_Semaphore_Complex (const char *name, - int create = ACE_SV_Semaphore_Complex::ACE_CREATE, - int initial_value = 1, - u_short nsems = 1, - int perms = ACE_DEFAULT_FILE_PERMS); + int create = ACE_SV_Semaphore_Complex::ACE_CREATE, + int initial_value = 1, + u_short nsems = 1, + int perms = ACE_DEFAULT_FILE_PERMS); + ACE_SV_Semaphore_Complex (const char *name, + int create = ACE_SV_Semaphore_Complex::ACE_CREATE, + int initial_value = 1, + u_short nsems = 1, + int perms = ACE_DEFAULT_FILE_PERMS); ~ACE_SV_Semaphore_Complex (void); - int open (const char *name, - int flags = ACE_SV_Semaphore_Simple::ACE_CREATE, - int initial_value = 1, - u_short nsems = 1, - int perms = ACE_DEFAULT_FILE_PERMS); + int open (const char *name, + int flags = ACE_SV_Semaphore_Simple::ACE_CREATE, + int initial_value = 1, + u_short nsems = 1, + int perms = ACE_DEFAULT_FILE_PERMS); // Open or create an array of SV_Semaphores. We return 0 if all is // OK, else -1. - int open (key_t key, - int flags = ACE_SV_Semaphore_Simple::ACE_CREATE, - int initial_value = 1, - u_short nsems = 1, - int perms = ACE_DEFAULT_FILE_PERMS); + int open (key_t key, + int flags = ACE_SV_Semaphore_Simple::ACE_CREATE, + int initial_value = 1, + u_short nsems = 1, + int perms = ACE_DEFAULT_FILE_PERMS); // Open or create an array of SV_Semaphores. We return 0 if all is // OK, else -1. |