[gegl] node: get rid of a static mutex
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] node: get rid of a static mutex
- Date: Sun, 8 Apr 2012 17:25:01 +0000 (UTC)
commit 49c8fc02375b46dcc90b195ede36228d8e0aeee2
Author: Ãyvind KolÃs <pippin gimp org>
Date: Sun Apr 8 19:23:41 2012 +0200
node: get rid of a static mutex
This mutex serialized computed events; this is not neccesary when processing
is only happening in the main thread. It seems like OpenCL might become the
properly encouraged way to use more cores with GEGL.
gegl/graph/gegl-node.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 4c31a50..2fb7464 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -2018,10 +2018,7 @@ 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]