From: Jaesung Ku Date: Fri, 19 Jul 2013 07:34:21 +0000 (+0900) Subject: Update for AppLifecycle Event X-Git-Tag: submit/tizen/20131210.080830^2^2~243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a86de9130c59fdbba22b8ffc497d83b15a64053;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 ecaf130..9131b91 100755 --- a/src/app/FApp_AppManagerImpl.cpp +++ b/src/app/FApp_AppManagerImpl.cpp @@ -1294,11 +1294,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) @@ -1316,8 +1316,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"); @@ -1329,11 +1329,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) { @@ -1363,8 +1363,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");