From: Ossama Othman Date: Sun, 13 Oct 2013 04:33:05 +0000 (-0700) Subject: Removed unused reverse_lock.hpp header. X-Git-Tag: accepted/tizen/20131106.223055~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F78%2F10978%2F1;p=profile%2Fivi%2Fsettings-daemon.git Removed unused reverse_lock.hpp header. Change-Id: I7d4bc1e77faf29d8229b898413bf777223de9508 Signed-off-by: Ossama Othman --- 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 @ - * - * @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 - 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: