From 4b292cf3810ebac48709eee7168ba247924ae041 Mon Sep 17 00:00:00 2001 From: Karthik Subas Chandra Bose Date: Mon, 15 Jul 2013 14:55:49 +0900 Subject: [PATCH] prevent issue fixes Change-Id: Iad8760c64e6a6fdca2272ce678f4e865f40ce4ba Signed-off-by: Karthik Subas Chandra Bose --- src/app/FApp_AppManagerImpl.cpp | 7 ++++++- src/app/FApp_AppManagerProxy.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/FApp_AppManagerImpl.cpp b/src/app/FApp_AppManagerImpl.cpp index fe907a7..ecaf130 100755 --- a/src/app/FApp_AppManagerImpl.cpp +++ b/src/app/FApp_AppManagerImpl.cpp @@ -274,7 +274,8 @@ _AppManagerImpl::Construct(void) __appManagerEvent.Construct(); __appLifecycleEvent.Construct(); __appListForAppLifecycle.Construct(0, 0, __strHashCodeProvider, __comparer); - __mutex.Create(); + result r = __mutex.Create(); + SysTryLog(NID_APP, r == E_SUCCESS, "Creating mutex failed."); _IAppManager* pMgr = _AppManagerProxy::GetService(); //todo : uncomment following _SysTryReturn or put assert. @@ -1294,6 +1295,7 @@ _AppManagerImpl::RegisterAppForAppLifecycleEvent(const AppId& appId) SysLog(NID_APP, "Enter"); result r = __mutex.Acquire(); + SysTryLog(NID_APP, r == E_SUCCESS, "Acquiring mutex failed."); bool isContained = false; r = __appListForAppLifecycle.ContainsKey(appId, isContained); @@ -1315,6 +1317,7 @@ _AppManagerImpl::RegisterAppForAppLifecycleEvent(const AppId& appId) SysLog(NID_APP, "The appId(%ls) is registered.", appId.GetPointer()); } r = __mutex.Release(); + SysTryLog(NID_APP, r == E_SUCCESS, "Releasing mutex failed."); SysLog(NID_APP, "Exit"); @@ -1327,6 +1330,7 @@ _AppManagerImpl::UnregisterAppForAppLifecycleEvent(const AppId& appId) SysLog(NID_APP, "Enter"); result r = __mutex.Acquire(); + SysTryLog(NID_APP, r == E_SUCCESS, "Acquiring mutex failed."); bool isContained = false; r = __appListForAppLifecycle.ContainsKey(appId, isContained); @@ -1360,6 +1364,7 @@ _AppManagerImpl::UnregisterAppForAppLifecycleEvent(const AppId& appId) } r = __mutex.Release(); + SysTryLog(NID_APP, r == E_SUCCESS, "Releasing mutex failed."); SysLog(NID_APP, "Exit"); diff --git a/src/app/FApp_AppManagerProxy.cpp b/src/app/FApp_AppManagerProxy.cpp index 05f884b..48cab0c 100755 --- a/src/app/FApp_AppManagerProxy.cpp +++ b/src/app/FApp_AppManagerProxy.cpp @@ -312,7 +312,7 @@ _AppManagerProxy::OnAppLifecycleEventReceived(const AppId& appId, int appLifecyc { SysTryLog(NID_APP, __pServiceEventListener != null, "__pServiceEventListener instance must not be null."); - _AppLifecycleEventType eventType; + _AppLifecycleEventType eventType = _APP_LIFECYCLE_EVENT_LAUNCH; if (appLifecycleEventType == 0) { -- 2.7.4