tizen 2.4 release
[framework/web/wrt-commons.git] / modules / core / src / mutex.cpp
similarity index 85%
rename from modules_mobile/core/src/mutex.cpp
rename to modules/core/src/mutex.cpp
index eed1f2e..07abae0 100644 (file)
@@ -22,7 +22,7 @@
 #include <stddef.h>
 #include <dpl/mutex.h>
 #include <dpl/assert.h>
-#include <dpl/log/log.h>
+#include <dpl/log/wrt_log.h>
 #include <errno.h>
 
 namespace DPL {
@@ -31,7 +31,7 @@ Mutex::Mutex()
     if (pthread_mutex_init(&m_mutex, NULL) != 0) {
         int error = errno;
 
-        LogPedantic("Failed to create mutex. Errno: " << error);
+        WrtLogD("Failed to create mutex. Errno: %i", error);
 
         ThrowMsg(Exception::CreateFailed,
                  "Failed to create mutex. Errno: " << error);
@@ -43,7 +43,7 @@ Mutex::~Mutex()
     if (pthread_mutex_destroy(&m_mutex) != 0) {
         int error = errno;
 
-        LogPedantic("Failed to destroy mutex. Errno: " << error);
+        WrtLogD("Failed to destroy mutex. Errno: %i", error);
     }
 }
 
@@ -52,7 +52,7 @@ void Mutex::Lock() const
     if (pthread_mutex_lock(&m_mutex) != 0) {
         int error = errno;
 
-        LogPedantic("Failed to lock mutex. Errno: " << error);
+        WrtLogD("Failed to lock mutex. Errno: %i", error);
 
         ThrowMsg(Exception::LockFailed,
                  "Failed to lock mutex. Errno: " << error);
@@ -64,7 +64,7 @@ void Mutex::Unlock() const
     if (pthread_mutex_unlock(&m_mutex) != 0) {
         int error = errno;
 
-        LogPedantic("Failed to unlock mutex. Errno: " << error);
+        WrtLogD("Failed to unlock mutex. Errno: %i", error);
 
         ThrowMsg(Exception::UnlockFailed,
                  "Failed to unlock mutex. Errno: " << error);
@@ -86,7 +86,7 @@ Mutex::ScopedLock::~ScopedLock()
     }
     Catch(Mutex::Exception::UnlockFailed)
     {
-        LogPedantic("Failed to leave mutex scoped lock");
+        WrtLogD("Failed to leave mutex scoped lock");
     }
 }
 } // namespace DPL