summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-10-04 21:20:08 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-10-04 21:20:08 +0000
commitff65207ded9e7af3118b82c7212f43af94421d4d (patch)
treeeb18df5eb27b2bfe3cacfc556b77d6457736975b /ace
parentbabc416226b75bb8e4e3c7040f0a63cb86d8be49 (diff)
downloadATCD-ff65207ded9e7af3118b82c7212f43af94421d4d.tar.gz
ChangeLogTag:Mon Oct 4 08:31:58 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r--ace/Malloc_T.cpp2
-rw-r--r--ace/Synch.cpp4
-rw-r--r--ace/Synch.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/ace/Malloc_T.cpp b/ace/Malloc_T.cpp
index d73eb600c05..e3aaef2cb27 100644
--- a/ace/Malloc_T.cpp
+++ b/ace/Malloc_T.cpp
@@ -96,7 +96,7 @@ template <ACE_MEM_POOL_1, class ACE_LOCK> void
ACE_Malloc<ACE_MEM_POOL_2, ACE_LOCK>::print_stats (void) const
{
ACE_TRACE ("ACE_Malloc<ACE_MEM_POOL_2, ACE_LOCK>::print_stats");
- ACE_GUARD (ACE_LOCK, ace_mon, this->lock_);
+ ACE_GUARD (ACE_LOCK, ace_mon, (ACE_LOCK &) this->lock_);
if (this->cb_ptr_ == 0)
return;
diff --git a/ace/Synch.cpp b/ace/Synch.cpp
index ff4ef5878ae..93915f81cba 100644
--- a/ace/Synch.cpp
+++ b/ace/Synch.cpp
@@ -317,9 +317,7 @@ ACE_Process_Semaphore::ACE_Process_Semaphore (u_int count,
ACE_Process_Semaphore::~ACE_Process_Semaphore (void)
{
-// ACE_TRACE ("ACE_Process_Semaphore::~ACE_Process_Semaphore");
- // if (this->remove () == -1)
- // ACE_ERROR ((LM_ERROR, ASYS_TEXT("%p\n"), ASYS_TEXT("ACE_Process_Mutex::~ACE_Process_Mutex")));
+ // ACE_TRACE ("ACE_Process_Semaphore::~ACE_Process_Semaphore");
}
// Explicitly destroy the semaphore.
diff --git a/ace/Synch.h b/ace/Synch.h
index 807825fc3c9..ca32cc3cdcc 100644
--- a/ace/Synch.h
+++ b/ace/Synch.h
@@ -348,7 +348,9 @@ public:
// maximum value of <max>.
~ACE_Process_Semaphore (void);
- // Implicitly destroy the semaphore.
+ // This method is a no-op, i.e., it doesn't remove the semaphore.
+ // If you want to remove the semaphore, you must call the <remove>
+ // method explicitly.
int remove (void);
// Explicitly destroy the semaphore. Note that only one thread