diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-16 19:30:26 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-16 19:30:26 +0000 |
commit | 4a74ec8da792a561dfd894c6b31939f0b36d39ba (patch) | |
tree | 1ada32d58db0e5d98fab488845a165594cd207f1 /examples/System_V_IPC | |
parent | ef737e28d32c34f3aae6161b3a1297a9836bc3fa (diff) | |
download | ATCD-4a74ec8da792a561dfd894c6b31939f0b36d39ba.tar.gz |
*** empty log message ***
Diffstat (limited to 'examples/System_V_IPC')
-rw-r--r-- | examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp index d8207a8968b..1e5e01c8266 100644 --- a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp +++ b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp @@ -8,7 +8,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> alloc; const int SEM_KEY = ACE_DEFAULT_SEM_KEY + 1; @@ -29,8 +29,8 @@ parent (char *shm) else if (sem.acquire (1) == -1) ACE_ERROR ((LM_ERROR, "%p", "parent sem.acquire(1)")); - if (allocator.remove () == -1) - ACE_ERROR ((LM_ERROR, "%p\n", "allocator.remove")); + if (alloc.remove () == -1) + ACE_ERROR ((LM_ERROR, "%p\n", "alloc.remove")); if (sem.remove () == -1) ACE_ERROR ((LM_ERROR, "%p\n", "sem.remove")); return 0; @@ -60,7 +60,7 @@ child (char *shm) int main (int, char *[]) { - char *shm = (char *) allocator.malloc (27); + char *shm = (char *) alloc.malloc (27); switch (ACE_OS::fork ()) { |