#ifndef ACE_REVERSE_LOCK_T_CPP #define ACE_REVERSE_LOCK_T_CPP #include "ace/Reverse_Lock_T.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ #if !defined (__ACE_INLINE__) #include "ace/Reverse_Lock_T.inl" #endif /* __ACE_INLINE__ */ ACE_BEGIN_VERSIONED_NAMESPACE_DECL template ACE_Reverse_Lock::~ACE_Reverse_Lock () { } // Explicitly destroy the lock. template int ACE_Reverse_Lock::remove () { return this->lock_.remove (); } // Release the lock. template int ACE_Reverse_Lock::acquire () { return this->lock_.release (); } // Release the lock. template int ACE_Reverse_Lock::tryacquire () { ACE_NOTSUP_RETURN (-1); } // Acquire the lock. template int ACE_Reverse_Lock::release () { if (this->acquire_method_ == ACE_Acquire_Method::ACE_READ) return this->lock_.acquire_read (); else if (this->acquire_method_ == ACE_Acquire_Method::ACE_WRITE) return this->lock_.acquire_write (); else return this->lock_.acquire (); } // Release the lock. template int ACE_Reverse_Lock::acquire_read () { ACE_NOTSUP_RETURN (-1); } // Release the lock. template int ACE_Reverse_Lock::acquire_write () { ACE_NOTSUP_RETURN (-1); } // Release the lock. template int ACE_Reverse_Lock::tryacquire_read () { ACE_NOTSUP_RETURN (-1); } // Release the lock. template int ACE_Reverse_Lock::tryacquire_write () { ACE_NOTSUP_RETURN (-1); } // Release the lock. template int ACE_Reverse_Lock::tryacquire_write_upgrade () { ACE_NOTSUP_RETURN (-1); } ACE_END_VERSIONED_NAMESPACE_DECL #endif /* ACE_REVERSE_LOCK_T_CPP */