+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
ThrowMsg(StringException::IconvConvertErrorUTF8ToUTF32,
"iconv failed for " << "UTF-32 <- UTF-8" << "error: "
<< GetErrnoString());
- return String();
}
// Ignore BOM in front of UTF-32
ThrowMsg(StringException::IconvConvertErrorUTF32ToUTF8,
"iconv failed for " << "UTF-8 <- UTF-32"
<< "error: " << GetErrnoString());
- return std::string();
}
return &output[0];
#include <dpl/assert.h>
#include <errno.h>
#include <time.h>
+#include <string.h>
namespace // anonymous
{
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
// 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,
return "/filesystem_usage";
}
+inline const char* GetVconfKeyMemorySavingModePath()
+{
+ return "/memory_saving_mode";
+}
+
} // namespace GlobalConfig
} // namespace WrtDB
.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
-#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