diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-02 23:19:51 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-02 23:19:51 +0000 |
commit | 4168f30dbb9bfa0fd64461daadbc311ad94457a3 (patch) | |
tree | 0f3b1f0784091ff690ed1e1075248b09e76fb4ae /examples/System_V_IPC | |
parent | c98211207dcd0181eefef31c72a32be7997965d9 (diff) | |
download | ATCD-4168f30dbb9bfa0fd64461daadbc311ad94457a3.tar.gz |
*** empty log message ***
Diffstat (limited to 'examples/System_V_IPC')
-rw-r--r-- | examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp | 1 | ||||
-rw-r--r-- | examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp index ae39e9d6a98..d8207a8968b 100644 --- a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp +++ b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp @@ -11,7 +11,6 @@ static ACE_Malloc<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple> allocator; const int SEM_KEY = ACE_DEFAULT_SEM_KEY + 1; -const int SHMSZ = 27; static int parent (char *shm) diff --git a/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp b/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp index 98c8b0591b2..9609b6259d0 100644 --- a/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp +++ b/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp @@ -14,7 +14,7 @@ // Shared memory allocator (note that this chews up the // ACE_DEFAULT_SEM_KEY). -static ACE_Malloc<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple> allocator; +static ACE_Malloc<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple> my_alloc; const int SEM_KEY_1 = ACE_DEFAULT_SEM_KEY + 1; const int SEM_KEY_2 = ACE_DEFAULT_SEM_KEY + 2; @@ -38,8 +38,8 @@ parent (char *shm) else if (synch.acquire () == -1) ACE_ERROR ((LM_ERROR, "%p", "parent synch.acquire")); - if (allocator.remove () == -1) - ACE_ERROR ((LM_ERROR, "%p\n", "allocator.remove")); + if (my_alloc.remove () == -1) + ACE_ERROR ((LM_ERROR, "%p\n", "my_alloc.remove")); if (mutex.remove () == -1) ACE_ERROR ((LM_ERROR, "%p\n", "mutex.remove")); if (synch.remove () == -1) @@ -72,7 +72,7 @@ child (char *shm) int main (int, char *[]) { - char *shm = (char *) allocator.malloc (27); + char *shm = (char *) my_alloc.malloc (27); switch (ACE_OS::fork ()) { |