summaryrefslogtreecommitdiff
path: root/ace/SV_Semaphore_Complex.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-02 09:32:53 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-02 09:32:53 +0000
commit6bd558e062c7fc0dadbeb7d275f3328446dbeb99 (patch)
tree179f2aa355c177e12da9ae518427e18cef639ccb /ace/SV_Semaphore_Complex.cpp
parentfad30f048644d2c8100cb4e1e8e4a8e1c7c61d79 (diff)
downloadATCD-6bd558e062c7fc0dadbeb7d275f3328446dbeb99.tar.gz
foo
Diffstat (limited to 'ace/SV_Semaphore_Complex.cpp')
-rw-r--r--ace/SV_Semaphore_Complex.cpp14
1 files changed, 6 insertions, 8 deletions
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;
}
}