*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)

*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-17 15:35:07 -07:00
parent f21f47005d
commit 26b5e033ff
2257 changed files with 750 additions and 103852 deletions
-15
View File
@@ -2,11 +2,8 @@
//
// $Id: Mutex.inl 80826 2008-03-04 14:51:23Z wotte $
#include "ace/OS_NS_sys_mman.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE int
ACE_Mutex::acquire_read (void)
{
@@ -17,7 +14,6 @@ ACE_Mutex::acquire_read (void)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return ACE_OS::mutex_lock (&this->lock_);
}
ACE_INLINE int
ACE_Mutex::acquire_write (void)
{
@@ -28,7 +24,6 @@ ACE_Mutex::acquire_write (void)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return ACE_OS::mutex_lock (&this->lock_);
}
ACE_INLINE int
ACE_Mutex::tryacquire_read (void)
{
@@ -39,7 +34,6 @@ ACE_Mutex::tryacquire_read (void)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return ACE_OS::mutex_trylock (&this->lock_);
}
ACE_INLINE const ACE_mutex_t &
ACE_Mutex::lock (void) const
{
@@ -50,7 +44,6 @@ ACE_Mutex::lock (void) const
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return this->lock_;
}
ACE_INLINE int
ACE_Mutex::tryacquire_write (void)
{
@@ -61,14 +54,12 @@ ACE_Mutex::tryacquire_write (void)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return ACE_OS::mutex_trylock (&this->lock_);
}
ACE_INLINE int
ACE_Mutex::tryacquire_write_upgrade (void)
{
// ACE_TRACE ("ACE_Mutex::tryacquire_write_upgrade");
return 0;
}
ACE_INLINE int
ACE_Mutex::acquire (void)
{
@@ -79,7 +70,6 @@ ACE_Mutex::acquire (void)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return ACE_OS::mutex_lock (&this->lock_);
}
ACE_INLINE int
ACE_Mutex::acquire (ACE_Time_Value &tv)
{
@@ -90,7 +80,6 @@ ACE_Mutex::acquire (ACE_Time_Value &tv)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS*/
return ACE_OS::mutex_lock (&this->lock_, tv);
}
ACE_INLINE int
ACE_Mutex::acquire (ACE_Time_Value *tv)
{
@@ -100,7 +89,6 @@ ACE_Mutex::acquire (ACE_Time_Value *tv)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS*/
return ACE_OS::mutex_lock (&this->lock_, tv);
}
ACE_INLINE int
ACE_Mutex::tryacquire (void)
{
@@ -111,7 +99,6 @@ ACE_Mutex::tryacquire (void)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return ACE_OS::mutex_trylock (&this->lock_);
}
ACE_INLINE int
ACE_Mutex::release (void)
{
@@ -122,7 +109,6 @@ ACE_Mutex::release (void)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return ACE_OS::mutex_unlock (&this->lock_);
}
ACE_INLINE int
ACE_Mutex::remove (void)
{
@@ -171,5 +157,4 @@ ACE_Mutex::remove (void)
#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return result;
}
ACE_END_VERSIONED_NAMESPACE_DECL