prevent issue fixes on app
authorKarthik Subas Chandra Bose <karthik.scb@samsung.com>
Mon, 15 Jul 2013 07:38:18 +0000 (16:38 +0900)
committerKarthik Subas Chandra Bose <karthik.scb@samsung.com>
Mon, 15 Jul 2013 08:31:52 +0000 (17:31 +0900)
Change-Id: Iac22aa559f62eeaa83301d858784589dfa83c30b
Signed-off-by: Karthik Subas Chandra Bose <karthik.scb@samsung.com>
src/app/FApp_AppManagerImpl.cpp
src/app/FApp_AppManagerProxy.cpp

index fe907a7..ecaf130 100755 (executable)
@@ -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");
 
index 05f884b..48cab0c 100755 (executable)
@@ -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)
        {