// -*- C++ -*- // // $Id$ #include "ace/OS_Memory.h" ACE_BEGIN_VERSIONED_NAMESPACE_DECL template ACE_INLINE ACE_Lock_Adapter::ACE_Lock_Adapter ( ACE_LOCKING_MECHANISM &lock) : lock_ (&lock), delete_lock_ (false) { } template ACE_INLINE ACE_Lock_Adapter::ACE_Lock_Adapter (void) : lock_ (0), delete_lock_ (true) { ACE_NEW (this->lock_, ACE_LOCKING_MECHANISM); } ACE_END_VERSIONED_NAMESPACE_DECL