From: Jaesung Ku Date: Fri, 19 Jul 2013 07:34:21 +0000 (+0900) Subject: Update for AppLifecycle Event X-Git-Tag: accepted/tizen/20130912.081851^2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=874afea88a0c6e69e2defeb1da9602e5146d29ab;p=platform%2Fframework%2Fnative%2Fappfw.git Update for AppLifecycle Event Change-Id: I33ab78b3c312e83e90a028d5f3580ae280fc28f5 Signed-off-by: Jaesung Ku --- diff --git a/src/app/FApp_AppManagerImpl.cpp b/src/app/FApp_AppManagerImpl.cpp index 3797efe..e04da91 100644 --- a/src/app/FApp_AppManagerImpl.cpp +++ b/src/app/FApp_AppManagerImpl.cpp @@ -943,11 +943,11 @@ _AppManagerImpl::RegisterAppForAppLifecycleEvent(const AppId& appId) { SysLog(NID_APP, "Enter"); - result r = __mutex.Acquire(); - SysTryLog(NID_APP, r == E_SUCCESS, "Acquiring mutex failed."); + result res = __mutex.Acquire(); + SysTryLog(NID_APP, res == E_SUCCESS, "Acquiring mutex failed."); bool isContained = false; - r = __appListForAppLifecycle.ContainsKey(appId, isContained); + result r = __appListForAppLifecycle.ContainsKey(appId, isContained); int currentRefCnt = 0; if(isContained) @@ -965,8 +965,8 @@ _AppManagerImpl::RegisterAppForAppLifecycleEvent(const AppId& appId) r = pMgr->RegisterAppForAppLifecycleEvent(appId, -1); SysLog(NID_APP, "The appId(%ls) is registered.", appId.GetPointer()); } - r = __mutex.Release(); - SysTryLog(NID_APP, r == E_SUCCESS, "Releasing mutex failed."); + res = __mutex.Release(); + SysTryLog(NID_APP, res == E_SUCCESS, "Releasing mutex failed."); SysLog(NID_APP, "Exit"); @@ -978,11 +978,11 @@ _AppManagerImpl::UnregisterAppForAppLifecycleEvent(const AppId& appId) { SysLog(NID_APP, "Enter"); - result r = __mutex.Acquire(); - SysTryLog(NID_APP, r == E_SUCCESS, "Acquiring mutex failed."); + result res = __mutex.Acquire(); + SysTryLog(NID_APP, res == E_SUCCESS, "Acquiring mutex failed."); bool isContained = false; - r = __appListForAppLifecycle.ContainsKey(appId, isContained); + result r = __appListForAppLifecycle.ContainsKey(appId, isContained); if(isContained) { @@ -1012,8 +1012,8 @@ _AppManagerImpl::UnregisterAppForAppLifecycleEvent(const AppId& appId) SysLog(NID_APP, "The appId(%ls) is not registered.", appId.GetPointer()); } - r = __mutex.Release(); - SysTryLog(NID_APP, r == E_SUCCESS, "Releasing mutex failed."); + res = __mutex.Release(); + SysTryLog(NID_APP, res == E_SUCCESS, "Releasing mutex failed."); SysLog(NID_APP, "Exit");