[Release] wrt-commons_0.2.89 submit/tizen_2.0/20130102.020940
authorJihoon Chung <jihoon.chung@samsung.com>
Wed, 2 Jan 2013 02:09:17 +0000 (11:09 +0900)
committerJihoon Chung <jihoon.chung@samsung.com>
Wed, 2 Jan 2013 02:09:17 +0000 (11:09 +0900)
Change-Id: I31303581a26a68ad6754e5bb33a6f684137d7242

debian/changelog
modules/core/src/string.cpp
modules/core/src/thread.cpp
modules/utils/src/wrt_global_settings.cpp
modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h
modules/widget_dao/include/dpl/wrt-dao-ro/vconf_config.h
packaging/wrt-commons.spec

index 52e2fd1323d2569055a86418b6ec4b0c7faf054e..4f04063fc1410f682b53b319f8332339697953fc 100644 (file)
@@ -1,3 +1,15 @@
+wrt-commons (0.2.89) unstable; urgency=low
+
+  * Handle return value from pthread_setspecific
+  * Deleted array to 0 comparison
+  * Deleted unreachable code
+  * Add vconf key for memory saving mode
+
+  * Git : framework/web/wrt-commons
+  * Tag : wrt-commons_0.2.89
+
+ -- Jihoon Chung <jihoon.chung@samsung.com>  Wed, 02 Jan 2013 11:00:02 +0900
+
 wrt-commons (0.2.88) unstable; urgency=low
 
   * Add path builder for vconf key
index efb68c722bf05f7433e29ca2a6f9a775e010afc7..f03cceca998d61e93007f408f099616c2c2c8595 100644 (file)
@@ -115,7 +115,6 @@ String FromUTF8String(const std::string& aIn)
         ThrowMsg(StringException::IconvConvertErrorUTF8ToUTF32,
                  "iconv failed for " << "UTF-32 <- UTF-8" << "error: "
                             << GetErrnoString());
-        return String();
     }
 
     // Ignore BOM in front of UTF-32
@@ -158,7 +157,6 @@ std::string ToUTF8String(const DPL::String& aIn)
         ThrowMsg(StringException::IconvConvertErrorUTF32ToUTF8,
                  "iconv failed for " << "UTF-8 <- UTF-32"
                             << "error: " << GetErrnoString());
-        return std::string();
     }
 
     return &output[0];
index 8dacad6e59af414f86c50747234fcc847ba57fae..39744069acfafc3b9ce994e4a22fd411c69c5d2b 100644 (file)
@@ -27,6 +27,7 @@
 #include <dpl/assert.h>
 #include <errno.h>
 #include <time.h>
+#include <string.h>
 
 namespace // anonymous
 {
@@ -118,7 +119,12 @@ void *Thread::StaticThreadEntry(void *param)
     Assert(This != NULL);
 
     // Set thread specific
-    pthread_setspecific(g_threadSpecific.threadSpecific, This);
+    int result =  pthread_setspecific(g_threadSpecific.threadSpecific, This);
+
+    if (result!=0)
+    {
+        LogError("Failed to set threadSpecific. Error: " << strerror(result));
+    }
 
     // Enter thread proc
     // Do not allow exceptions to hit pthread core
index 9cc9c566b19024c6caebeaa42d5176d626c71095..9428fb3a712070b11f0f0020daaa158b8808ea32 100644 (file)
@@ -67,7 +67,7 @@ MachineType getMachineType()
     // get current machine name
     struct utsname u;
     if (0 == uname(&u)) {
-        if ((!u.machine) || (0 == strlen(u.machine))) {
+        if (0 == strlen(u.machine)) {
             return MACHINE_TYPE_UNKNOWN;
         } else {
             // If current machine is emul,
index 87bf9d623bc7ede63af9bdef1cc84b6b41b80718..5558dbd9c63959a209aac3223d4c2a947ca9b83e 100644 (file)
@@ -315,6 +315,11 @@ inline const char* GetVconfKeyFilesystemUsagePath()
     return "/filesystem_usage";
 }
 
+inline const char* GetVconfKeyMemorySavingModePath()
+{
+    return "/memory_saving_mode";
+}
+
 } // namespace GlobalConfig
 } // namespace WrtDB
 
index 4a3c2cb838bf513c4af211efeaacc41da9ca857d..a30a84db848814713cc522e50325b8af83fe7f38 100644 (file)
@@ -83,6 +83,15 @@ inline std::string GetVconfKeyFilesystemUsage(DPL::String pkgName)
                .GetFullPath();
 }
 
+inline std::string GetVconfKeyMemorySavingMode(DPL::String pkgName)
+{
+    return PathBuilder()
+               .Append(GlobalConfig::GetVconfKeyPrefixPath())
+               .Append(DPL::ToUTF8String(pkgName))
+               .Concat(GlobalConfig::GetVconfKeyMemorySavingModePath())
+               .GetFullPath();
+}
+
 } // namespace VconfConfig
 } // namespace WrtDB
 
index a1ca79e6295f1bee127418b0faca11eafb0b122f..41357df8fe7f83ae43b76676a61c41f2a1e48629 100644 (file)
@@ -1,7 +1,7 @@
-#git:framework/web/wrt-commons wrt-commons 0.2.88
+#git:framework/web/wrt-commons wrt-commons 0.2.89
 Name:       wrt-commons
 Summary:    Wrt common library
-Version:    0.2.88
+Version:    0.2.89
 Release:    1
 Group:      Development/Libraries
 License:    Apache License, Version 2.0