diff options
author | Ossama Othman <ossama.othman@intel.com> | 2013-10-12 21:33:05 -0700 |
---|---|---|
committer | Ossama Othman <ossama.othman@intel.com> | 2013-10-15 13:34:42 -0700 |
commit | 9a95a6a3f611efad54b3f7352be824b27c1cbbdd (patch) | |
tree | d6857193714702530fa0d9a4dde950f6c9abfce5 /include | |
parent | 207a5bf26b9ca21a53592cd73bc88c55b1fbfcfb (diff) | |
download | settings-daemon-9a95a6a3f611efad54b3f7352be824b27c1cbbdd.tar.gz settings-daemon-9a95a6a3f611efad54b3f7352be824b27c1cbbdd.tar.bz2 settings-daemon-9a95a6a3f611efad54b3f7352be824b27c1cbbdd.zip |
Removed unused reverse_lock.hpp header.
Change-Id: I7d4bc1e77faf29d8229b898413bf777223de9508
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/settingsd/Makefile.am | 1 | ||||
-rw-r--r-- | include/settingsd/reverse_lock.hpp | 82 |
2 files changed, 0 insertions, 83 deletions
diff --git a/include/settingsd/Makefile.am b/include/settingsd/Makefile.am index 0eb9d72..8b5f5e4 100644 --- a/include/settingsd/Makefile.am +++ b/include/settingsd/Makefile.am @@ -28,5 +28,4 @@ pkginclude_HEADERS = \ glib_traits.hpp \ json_glib_traits.hpp \ smart_ptr.hpp \ - reverse_lock.hpp \ dbus_signal_callback.hpp diff --git a/include/settingsd/reverse_lock.hpp b/include/settingsd/reverse_lock.hpp deleted file mode 100644 index 7de5310..0000000 --- a/include/settingsd/reverse_lock.hpp +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @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: |