[gegl] node: serialize computed emits
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] node: serialize computed emits
- Date: Tue, 13 Mar 2012 10:31:51 +0000 (UTC)
commit 7f7226fa2d4f4f395dcbb2bd2c26f27bb3d7bd5d
Author: Ãyvind KolÃs <pippin gimp org>
Date: Tue Mar 13 04:01:47 2012 +0000
node: serialize computed emits
This makes GIMP only deal with one such update at a time. Still not sufficient
for some thread handling.
gegl/graph/gegl-node.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 1be5753..ddfdb48 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -1979,7 +1979,10 @@ void
gegl_node_emit_computed (GeglNode *node,
const GeglRectangle *rect)
{
+ static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
+ g_static_mutex_lock (&mutex);
g_signal_emit (node, gegl_node_signals[COMPUTED], 0, rect, NULL, NULL);
+ g_static_mutex_unlock (&mutex);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]