From: Karthik Subas Chandra Bose Date: Mon, 15 Jul 2013 05:55:49 +0000 (+0900) Subject: prevent issue fixes X-Git-Tag: submit/tizen/20131210.080830^2^2~251^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b292cf3810ebac48709eee7168ba247924ae041;p=platform%2Fframework%2Fnative%2Fappfw.git prevent issue fixes Change-Id: Iad8760c64e6a6fdca2272ce678f4e865f40ce4ba Signed-off-by: Karthik Subas Chandra Bose --- 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) {