Add a forward decl of Io::Registry
authorSunwook Bae <sunwook45.bae@samsung.com>
Mon, 2 Sep 2013 01:47:51 +0000 (10:47 +0900)
committerSunwook Bae <sunwook45.bae@samsung.com>
Mon, 2 Sep 2013 01:55:19 +0000 (10:55 +0900)
Change-Id: I37def4051a9659410841251472752240b4c24a1d
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/app/FApp_AppRegistryImpl.cpp
src/app/FApp_AppRegistryImpl.h

index 667a016..f2a532e 100644 (file)
@@ -35,6 +35,9 @@ using namespace Tizen::Base::Runtime;
 namespace Tizen { namespace App
 {
 
+static const ReadOnlyTag ReadOnly = {};
+static const ReadWriteTag ReadWrite = {};
+
 _AppRegistryImpl::_AppRegistryImpl(void)
        : __sectionName(L"__ApplicationStates")
 {
@@ -54,7 +57,8 @@ _AppRegistryImpl::Construct(void)
        result r = __regPath.Append(packageId);
        SysTryReturnResult(NID_APP, !IsFailed(r), r, "String appending has failed.");
 
-       __mutex.Create();
+       r = __mutex.Create();
+       SysTryReturnResult(NID_APP, !IsFailed(r), r, "Mutex intialization failed.");
 
        {
                MutexGuard lock(__mutex);
index af6f5ff..8183aab 100644 (file)
 #include <FAppTypes.h>
 #include <FBaseRtMutex.h>
 
+namespace Tizen { namespace Io { class Registry; } }
+
 namespace Tizen { namespace App
 {
 
 struct ReadOnlyTag {};
 struct ReadWriteTag {};
 
-static const ReadOnlyTag ReadOnly = {};
-static const ReadWriteTag ReadWrite = {};
-
 /**
  * @class              _AppRegistryImpl
  * @brief              This class manages an application's preferences.