Author: abrander
Date: 2010-02-13 11:01:50 +0100 (Sat, 13 Feb 2010)
New Revision: 3202
Modified:
trunk/librawstudio/rs-io.c
Log:
Changed IO-lock to a recursive lock.
Modified: trunk/librawstudio/rs-io.c
===================================================================
--- trunk/librawstudio/rs-io.c 2010-02-13 02:29:04 UTC (rev 3201)
+++ trunk/librawstudio/rs-io.c 2010-02-13 10:01:50 UTC (rev 3202)
@@ -22,7 +22,7 @@
static GStaticMutex init_lock = G_STATIC_MUTEX_INIT;
static GAsyncQueue *queue = NULL;
static GThreadPool *callback_pool = NULL;
-static GStaticMutex io_lock = G_STATIC_MUTEX_INIT;
+static GStaticRecMutex io_lock = G_STATIC_REC_MUTEX_INIT;
static void
callback_worker(gpointer data, gpointer user_data)
@@ -236,7 +236,7 @@
void
rs_io_lock()
{
- g_static_mutex_lock(&io_lock);
+ g_static_rec_mutex_lock(&io_lock);
}
/**
@@ -245,5 +245,5 @@
void
rs_io_unlock()
{
- g_static_mutex_unlock(&io_lock);
+ g_static_rec_mutex_unlock(&io_lock);
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit