+++ /dev/null
-/**
- * @file reverse_lock.hpp
- *
- * @brief C++11 style smart pointer for use by settings plug-ins.
- *
- * @author Ossama Othman @<ossama.othman@@intel.com@>
- *
- * @copyright @par
- * Copyright 2013 Intel Corporation All Rights Reserved.
- * @par
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation;
- * version 2.1 of the License.
- * @par
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * @par
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301 USA
- */
-
-#ifndef IVI_SETTINGS_REVERSE_LOCK_HPP
-#define IVI_SETTINGS_REVERSE_LOCK_HPP
-
-
-namespace ivi
-{
- namespace settings
- {
- /**
- * @typename reverse_lock
- *
- * @brief Mutex implementation that reverse the lock/unlock
- * operations.
- */
- template<typename T>
- class reverse_lock
- {
- public:
-
- constexpr reverse_lock(T & m) : mutex_(m) {}
-
- /// Unlock the underlying mutex.
- void lock() { mutex_.unlock(); }
-
- /// Lock the underlying mutex.
- void unlock() { mutex_.lock(); }
-
- private:
-
- /**
- * @name Prevent copying
- */
- //@{
- reverse_lock(reverse_lock const &) = delete;
- reverse_lock & operator=(reverse_lock const &) = delete;
- //@}
-
- private:
-
- /// The underlying mutex.
- T & mutex_;
-
- };
-
- }
-}
-
-
-#endif /* IVI_SETTINGS_REVERSE_LOCK_HPP */
-
-
-// Local Variables:
-// mode:c++
-// c-basic-offset:2
-// indent-tabs-mode: nil
-// End: