From 6bd558e062c7fc0dadbeb7d275f3328446dbeb99 Mon Sep 17 00:00:00 2001 From: schmidt Date: Mon, 2 Dec 1996 09:32:53 +0000 Subject: foo --- ace/SV_Semaphore_Complex.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'ace/SV_Semaphore_Complex.cpp') diff --git a/ace/SV_Semaphore_Complex.cpp b/ace/SV_Semaphore_Complex.cpp index 836a0cbabf2..9f65a36499e 100644 --- a/ace/SV_Semaphore_Complex.cpp +++ b/ace/SV_Semaphore_Complex.cpp @@ -156,11 +156,11 @@ ACE_SV_Semaphore_Complex::open (const char *name, flags, initial_value, nsems, perms); } -// Close a ACE_SV_Semaphore. Unlike the remove above, this function is -// for a process to call before it exits, when it is done with the -// ACE_SV_Semaphore. We "decrement" the counter of processes using the -// ACE_SV_Semaphore, and if this was the last one, we can remove the -// ACE_SV_Semaphore. +// Close a ACE_SV_Semaphore. Unlike the remove above, this function +// is for a process to call before it exits, when it is done with the +// ACE_SV_Semaphore. We "decrement" the counter of processes using +// the ACE_SV_Semaphore, and if this was the last one, we can remove +// the ACE_SV_Semaphore. int ACE_SV_Semaphore_Complex::close (void) @@ -193,10 +193,8 @@ ACE_SV_Semaphore_Complex::close (void) else { int result = ACE_OS::semop (this->internal_id_, - &ACE_SV_Semaphore_Complex::op_unlock_[0], 1); - + &ACE_SV_Semaphore_Complex::op_unlock_[0], 1); this->init (); - return result; } } -- cgit v1.2.1