[evolution-activesync] Use GMutex instead of GStaticMutex in eas-logger.c
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-activesync] Use GMutex instead of GStaticMutex in eas-logger.c
- Date: Wed, 8 May 2013 14:17:45 +0000 (UTC)
commit 42f51483262d9a4fe45f45708b73c85a8625af56
Author: David Woodhouse <David Woodhouse intel com>
Date: Wed May 8 15:16:52 2013 +0100
Use GMutex instead of GStaticMutex in eas-logger.c
libeasclient/eas-logger.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libeasclient/eas-logger.c b/libeasclient/eas-logger.c
index fe8b562..0619983 100644
--- a/libeasclient/eas-logger.c
+++ b/libeasclient/eas-logger.c
@@ -3,7 +3,7 @@
#include <unistd.h>
#include "eas-logger.h"
-static GStaticMutex g_mutex = G_STATIC_MUTEX_INIT;
+static GMutex g_mutex;
void eas_logger (const gchar *log_domain,
GLogLevelFlags log_level,
@@ -15,7 +15,7 @@ void eas_logger (const gchar *log_domain,
pid_t pid = getpid();
int envLevel = 4;
- g_static_mutex_lock (&g_mutex);
+ g_mutex_lock (&g_mutex);
if (getenv ("EAS_DEBUG_FILE")) {
logfile = fopen (g_getenv ("EAS_DEBUG_FILE"), "a");
@@ -27,7 +27,7 @@ void eas_logger (const gchar *log_domain,
if (log_level == G_LOG_LEVEL_ERROR) {
g_log_default_handler (log_domain, log_level, message, user_data);
- g_static_mutex_unlock (&g_mutex);
+ g_mutex_unlock (&g_mutex);
return;
}
@@ -62,5 +62,5 @@ void eas_logger (const gchar *log_domain,
fflush (stdout);
}
- g_static_mutex_unlock (&g_mutex);
+ g_mutex_unlock (&g_mutex);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]