diff options
Diffstat (limited to 'ace/Lock.cpp')
-rw-r--r-- | ace/Lock.cpp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/ace/Lock.cpp b/ace/Lock.cpp new file mode 100644 index 00000000000..bd1d1940524 --- /dev/null +++ b/ace/Lock.cpp @@ -0,0 +1,82 @@ +// $Id$ + +#if !defined (__ACE_INLINE__) +#include "ace/Lock.inl" +#endif /* __ACE_INLINE__ */ + +ACE_RCSID(ace, Lock, "$Id$") + +ACE_Lock::~ACE_Lock (void) +{ +} + +ACE_Adaptive_Lock::ACE_Adaptive_Lock (void) + : lock_ (0) +{ +} + +ACE_Adaptive_Lock::~ACE_Adaptive_Lock (void) +{ +} + +int +ACE_Adaptive_Lock::remove (void) +{ + return this->lock_->remove (); +} + +int +ACE_Adaptive_Lock::acquire (void) +{ + return this->lock_->acquire (); +} + +int +ACE_Adaptive_Lock::tryacquire (void) +{ + return this->lock_->tryacquire (); +} + +int +ACE_Adaptive_Lock::release (void) +{ + return this->lock_->release (); +} + +int +ACE_Adaptive_Lock::acquire_read (void) +{ + return this->lock_->acquire_read (); +} + +int +ACE_Adaptive_Lock::acquire_write (void) +{ + return this->lock_->acquire_write (); +} + +int +ACE_Adaptive_Lock::tryacquire_read (void) +{ + return this->lock_->tryacquire_read (); +} + +int +ACE_Adaptive_Lock::tryacquire_write (void) +{ + return this->lock_->tryacquire_write (); +} + +int +ACE_Adaptive_Lock::tryacquire_write_upgrade (void) +{ + return this->lock_->tryacquire_write_upgrade (); +} + +void +ACE_Adaptive_Lock::dump (void) const +{ +#if defined (ACE_HAS_DUMP) + // return this->lock_->dump (); +#endif /* ACE_HAS_DUMP */ +} |