Update for releasing mutex
authorJaesung Ku <jaesung.ku@samsung.com>
Wed, 29 May 2013 07:12:54 +0000 (16:12 +0900)
committerJaesung Ku <jaesung.ku@samsung.com>
Wed, 29 May 2013 07:12:54 +0000 (16:12 +0900)
Change-Id: I4b456071b09844ee8aba06fb9e60b3cb8efa04ef
Signed-off-by: Jaesung Ku <jaesung.ku@samsung.com>
src/base/inc/FBase_ObjectManagerImpl.h

index 5da1ad5..df134ee 100755 (executable)
@@ -190,6 +190,9 @@ public:
 
                if (index >= __slotCount)
                {
+                       r = __pLock->Release();
+                       SysTryLog(NID_BASE, !IsFailed(r), "Failed to release mutex");
+
                        SetLastResult(E_OBJ_NOT_FOUND);
                        return null;
                }
@@ -197,6 +200,9 @@ public:
                _HandleElement& element = __pSlots[index];
                if (element.__id != ((_Handle*)&handle)->__id)
                {
+                       r = __pLock->Release();
+                       SysTryLog(NID_BASE, !IsFailed(r), "Failed to release mutex");
+
                        SetLastResult(E_OBJ_NOT_FOUND);
                        return null;
                }
@@ -233,6 +239,9 @@ public:
 
                if (index >= __slotCount)
                {
+                       r = __pLock->Release();
+                       SysTryLog(NID_BASE, !IsFailed(r), "Failed to release mutex");
+
                        SetLastResult(E_OBJ_NOT_FOUND);
                        return null;
                }
@@ -240,6 +249,9 @@ public:
                const _HandleElement& element = __pSlots[index];
                if (element.__id != ((_Handle*)&handle)->__id)
                {
+                       r = __pLock->Release();
+                       SysTryLog(NID_BASE, !IsFailed(r), "Failed to release mutex");
+
                        SetLastResult(E_OBJ_NOT_FOUND);
                        return null;
                }