00001 // Lock.cpp,v 4.3 2005/10/28 16:14:53 ossama Exp 00002 00003 #include "ace/Lock.h" 00004 00005 #if !defined (__ACE_INLINE__) 00006 #include "ace/Lock.inl" 00007 #endif /* __ACE_INLINE__ */ 00008 00009 ACE_RCSID(ace, Lock, "Lock.cpp,v 4.3 2005/10/28 16:14:53 ossama Exp") 00010 00011 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00012 00013 ACE_Lock::~ACE_Lock (void) 00014 { 00015 } 00016 00017 ACE_Adaptive_Lock::ACE_Adaptive_Lock (void) 00018 : lock_ (0) 00019 { 00020 } 00021 00022 ACE_Adaptive_Lock::~ACE_Adaptive_Lock (void) 00023 { 00024 } 00025 00026 int 00027 ACE_Adaptive_Lock::remove (void) 00028 { 00029 return this->lock_->remove (); 00030 } 00031 00032 int 00033 ACE_Adaptive_Lock::acquire (void) 00034 { 00035 return this->lock_->acquire (); 00036 } 00037 00038 int 00039 ACE_Adaptive_Lock::tryacquire (void) 00040 { 00041 return this->lock_->tryacquire (); 00042 } 00043 00044 int 00045 ACE_Adaptive_Lock::release (void) 00046 { 00047 return this->lock_->release (); 00048 } 00049 00050 int 00051 ACE_Adaptive_Lock::acquire_read (void) 00052 { 00053 return this->lock_->acquire_read (); 00054 } 00055 00056 int 00057 ACE_Adaptive_Lock::acquire_write (void) 00058 { 00059 return this->lock_->acquire_write (); 00060 } 00061 00062 int 00063 ACE_Adaptive_Lock::tryacquire_read (void) 00064 { 00065 return this->lock_->tryacquire_read (); 00066 } 00067 00068 int 00069 ACE_Adaptive_Lock::tryacquire_write (void) 00070 { 00071 return this->lock_->tryacquire_write (); 00072 } 00073 00074 int 00075 ACE_Adaptive_Lock::tryacquire_write_upgrade (void) 00076 { 00077 return this->lock_->tryacquire_write_upgrade (); 00078 } 00079 00080 void 00081 ACE_Adaptive_Lock::dump (void) const 00082 { 00083 #if defined (ACE_HAS_DUMP) 00084 // return this->lock_->dump (); 00085 #endif /* ACE_HAS_DUMP */ 00086 } 00087 00088 ACE_END_VERSIONED_NAMESPACE_DECL