[gimp] Revert "app: make GimpTileHandlerValidate thread safe"
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Revert "app: make GimpTileHandlerValidate thread safe"
- Date: Fri, 24 Nov 2017 19:12:01 +0000 (UTC)
commit eeddd13209ff32a47c6471946267e406a3c88e1f
Author: Ell <ell_se yahoo com>
Date: Fri Nov 24 14:07:29 2017 -0500
Revert "app: make GimpTileHandlerValidate thread safe"
This reverts commit 4bd118ec8ad857c8bab54ff9118937dd24d0a8e9.
The mutex introduced by the above commit should no longer be
necessary, after GEGL commit
8b034c437b0162b26f85eb80867914977ac3cf57.
app/gegl/gimptilehandlervalidate.c | 10 +---------
app/gegl/gimptilehandlervalidate.h | 1 -
2 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/app/gegl/gimptilehandlervalidate.c b/app/gegl/gimptilehandlervalidate.c
index 71b91a7..c7feab1 100644
--- a/app/gegl/gimptilehandlervalidate.c
+++ b/app/gegl/gimptilehandlervalidate.c
@@ -106,7 +106,6 @@ gimp_tile_handler_validate_init (GimpTileHandlerValidate *validate)
source->command = gimp_tile_handler_validate_command;
- g_mutex_init (&validate->mutex);
validate->dirty_region = cairo_region_create ();
}
@@ -117,7 +116,6 @@ gimp_tile_handler_validate_finalize (GObject *object)
g_clear_object (&validate->graph);
g_clear_pointer (&validate->dirty_region, cairo_region_destroy);
- g_mutex_clear (&validate->mutex);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
@@ -323,13 +321,7 @@ gimp_tile_handler_validate_command (GeglTileSource *source,
retval = gegl_tile_handler_source_command (source, command, x, y, z, data);
if (command == GEGL_TILE_GET && z == 0)
- {
- g_mutex_lock (&validate->mutex);
-
- retval = gimp_tile_handler_validate_validate (source, retval, x, y);
-
- g_mutex_unlock (&validate->mutex);
- }
+ retval = gimp_tile_handler_validate_validate (source, retval, x, y);
return retval;
}
diff --git a/app/gegl/gimptilehandlervalidate.h b/app/gegl/gimptilehandlervalidate.h
index 542deed..5e2bda8 100644
--- a/app/gegl/gimptilehandlervalidate.h
+++ b/app/gegl/gimptilehandlervalidate.h
@@ -42,7 +42,6 @@ struct _GimpTileHandlerValidate
{
GeglTileHandler parent_instance;
- GMutex mutex;
GeglNode *graph;
cairo_region_t *dirty_region;
const Babl *format;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]