mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Some missing from merge.
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
ec939a5bce
commit
f4be15a7af
1895 changed files with 160408 additions and 53601 deletions
|
|
@ -1,3 +1,5 @@
|
|||
// $Id: Service_Repository.cpp 96985 2013-04-11 15:50:32Z huangh $
|
||||
|
||||
#include "ace/Service_Repository.h"
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
|
|
@ -114,7 +116,7 @@ int
|
|||
ACE_Service_Repository::fini (void)
|
||||
{
|
||||
ACE_TRACE ("ACE_Service_Repository::fini");
|
||||
ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, -1);
|
||||
ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex, ace_mon, this->lock_, -1));
|
||||
|
||||
int retval = 0;
|
||||
// Do not be tempted to use the prefix decrement operator. Use
|
||||
|
|
@ -209,7 +211,7 @@ int
|
|||
ACE_Service_Repository::close (void)
|
||||
{
|
||||
ACE_TRACE ("ACE_Service_Repository::close");
|
||||
ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, -1);
|
||||
ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex, ace_mon, this->lock_, -1));
|
||||
|
||||
#ifndef ACE_NLOGGING
|
||||
if(ACE::debug ())
|
||||
|
|
@ -384,7 +386,7 @@ ACE_Service_Repository::find (const ACE_TCHAR name[],
|
|||
bool ignore_suspended) const
|
||||
{
|
||||
ACE_TRACE ("ACE_Service_Repository::find");
|
||||
ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, -1);
|
||||
ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex, ace_mon, this->lock_, -1));
|
||||
size_t ignore_location = 0;
|
||||
return this->find_i (name, ignore_location, srp, ignore_suspended);
|
||||
}
|
||||
|
|
@ -406,8 +408,10 @@ ACE_Service_Repository::insert (const ACE_Service_Type *sr)
|
|||
// storage
|
||||
{
|
||||
// @TODO: Do we need a recursive mutex here?
|
||||
ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX,
|
||||
ace_mon, this->lock_, -1);
|
||||
ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex,
|
||||
ace_mon,
|
||||
this->lock_,
|
||||
-1));
|
||||
|
||||
return_value = find_i (sr->name (), i, &s, false);
|
||||
|
||||
|
|
@ -461,7 +465,7 @@ ACE_Service_Repository::resume (const ACE_TCHAR name[],
|
|||
const ACE_Service_Type **srp)
|
||||
{
|
||||
ACE_TRACE ("ACE_Service_Repository::resume");
|
||||
ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, -1);
|
||||
ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex, ace_mon, this->lock_, -1));
|
||||
|
||||
size_t i = 0;
|
||||
if (-1 == this->find_i (name, i, srp, 0))
|
||||
|
|
@ -477,7 +481,7 @@ ACE_Service_Repository::suspend (const ACE_TCHAR name[],
|
|||
const ACE_Service_Type **srp)
|
||||
{
|
||||
ACE_TRACE ("ACE_Service_Repository::suspend");
|
||||
ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, -1);
|
||||
ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex, ace_mon, this->lock_, -1));
|
||||
size_t i = 0;
|
||||
if (-1 == this->find_i (name, i, srp, 0))
|
||||
return -1;
|
||||
|
|
@ -495,7 +499,7 @@ ACE_Service_Repository::remove (const ACE_TCHAR name[], ACE_Service_Type **ps)
|
|||
ACE_TRACE ("ACE_Service_Repository::remove");
|
||||
ACE_Service_Type *s = 0;
|
||||
{
|
||||
ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, -1);
|
||||
ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex, ace_mon, this->lock_, -1));
|
||||
|
||||
// Not found!?
|
||||
if (this->remove_i (name, &s) == -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue