diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-11-12 05:34:31 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-11-12 05:34:31 +0000 |
commit | cb918cdb02c1c1fed54a86776a0888e236d2e198 (patch) | |
tree | a606b43b376cd1eeb9d3586634f20493d2b84635 /docs | |
parent | 26cbda1b88e5e57533468cde10d51cd5baeeb871 (diff) | |
download | gtk+-cb918cdb02c1c1fed54a86776a0888e236d2e198.tar.gz |
Changes to make gdk-pixbuf threadsafe (#157310, #157306, Colin Walters):
2004-11-12 Matthias Clasen <mclasen@redhat.com>
Changes to make gdk-pixbuf threadsafe (#157310, #157306,
Colin Walters):
* gdk-pixbuf-io.h (enum GdkPixbufFormatFlags): Add
GDK_PIXBUF_FORMAT_THREADSAFE to indicate that an image loader
is threadsafe.
* gdk-pixbuf-io.c (get_file_formats, _gdk_pixbuf_load_module):
Use a lock to make initialization of global data structures
threadsafe.
* gdk-pixbuf-private.h:
* gdk-pixbuf-io.c (_gdk_pixbuf_lock, _gdk_pixbuf_unlock):
Auxiliary functions which use another lock to protect
threadunsafe image loaders.
* gdk-pixbuf-io.c (gdk_pixbuf_real_save):
(save_to_callback_with_tmp_file):
(gdk_pixbuf_real_save_to_callback):
(gdk_pixbuf_new_from_xpm_data):
(_gdk_pixbuf_generic_image_load):
* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_load_module):
(gdk_pixbuf_loader_close):
(gdk_pixbuf_loader_finalize):
Use _gdk_pixbuf_lock() and _gdk_pixbuf_unlock().
* io-ani.c, io-bmp.c, io-gif.c, io-ico.c:
* io-jpeg.c, io-pcx.c, io-png.c, io-pnm.c:
* io-ras.c, io-tga.c, io-wbmp.c, io-xbm.c:
* io-xpm.c: Mark as threadsafe.
* io-tiff.c: Remove pointless locking, mark as
threadunsafe.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/ChangeLog | 5 | ||||
-rw-r--r-- | docs/reference/gdk-pixbuf/tmpl/module_interface.sgml | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 4916e93e71..31be71cace 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2004-11-12 Matthias Clasen <mclasen@redhat.com> + + * gdk-pixbuf/tmpl/module_interface.sgml: Document + GDK_PIXBUF_FORMAT_THREADSAFE. + 2004-11-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtk-sections.txt: Add gtk_action_get_accel_path. diff --git a/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml b/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml index cca46f9bcf..cfc176e318 100644 --- a/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml +++ b/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml @@ -193,6 +193,9 @@ operations. @GDK_PIXBUF_FORMAT_WRITABLE: the module can write out images in the format. @GDK_PIXBUF_FORMAT_SCALABLE: the image format is scalable +@GDK_PIXBUF_FORMAT_THREADSAFE: the module is threadsafe. If this flag is not + set, &gdk-pixbuf; will use a lock to prevent multiple threads from using + this module at the same time. (Since 2.6) @Since: 2.2 <!-- ##### STRUCT GdkPixbufModulePattern ##### --> |