From 321a108431b75746e2e06498e8959b81ff82dfd5 Mon Sep 17 00:00:00 2001 From: Mu-Woong Lee Date: Mon, 15 Feb 2016 15:29:45 +0900 Subject: [PATCH] Remove mutexing from device_status_alarm Change-Id: Ic27042b77ada3ce4f7696afd92f87897f384cbfe Signed-off-by: Mu-Woong Lee --- src/device/system/alarm.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/device/system/alarm.cpp b/src/device/system/alarm.cpp index 2a7ebd6..0b75fb5 100644 --- a/src/device/system/alarm.cpp +++ b/src/device/system/alarm.cpp @@ -15,14 +15,11 @@ */ #include -#include #include #include #include "system_types.h" #include "alarm.h" -static GMutex timer_mutex; - GENERATE_PROVIDER_COMMON_IMPL(device_status_alarm); ctx::device_status_alarm::device_status_alarm() @@ -156,8 +153,6 @@ bool ctx::device_status_alarm::add(int minute, int day_of_week) day_of_week > 0 && day_of_week <= timer_types::EVERYDAY, false, _E, "Invalid parameter"); - ctx::scope_mutex sm(&timer_mutex); - ref_count_array_s &ref = ref_count_map[minute]; for (int d = 0; d < MAX_DAY; ++d) { @@ -175,8 +170,6 @@ bool ctx::device_status_alarm::remove(int minute, int day_of_week) day_of_week > 0 && day_of_week <= timer_types::EVERYDAY, false, _E, "Invalid parameter"); - ctx::scope_mutex sm(&timer_mutex); - ref_count_array_s &ref = ref_count_map[minute]; for (int d = 0; d < MAX_DAY; ++d) { @@ -227,8 +220,6 @@ bool ctx::device_status_alarm::reset_timer(int minute) void ctx::device_status_alarm::clear() { - ctx::scope_mutex sm(&timer_mutex); - for (timer_state_map_t::iterator it = timer_state_map.begin(); it != timer_state_map.end(); ++it) { if (it->second.timer_id > 0) { timer_manager::remove(it->second.timer_id); -- 2.34.1