• Matthias Clasen's avatar
    Changes to make gdk-pixbuf threadsafe (#157310, #157306, Colin Walters): · cb918cdb
    Matthias Clasen authored
    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.
    cb918cdb
Name
Last commit
Last update
contrib Loading commit data...
debian Loading commit data...
demos Loading commit data...
docs Loading commit data...
examples Loading commit data...
gdk Loading commit data...
gdk-pixbuf Loading commit data...
gtk Loading commit data...
m4macros Loading commit data...
modules Loading commit data...
po Loading commit data...
po-properties Loading commit data...
tests Loading commit data...
.cvsignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
ChangeLog.pre-1-0 Loading commit data...
ChangeLog.pre-1-2 Loading commit data...
ChangeLog.pre-2-0 Loading commit data...
ChangeLog.pre-2-10 Loading commit data...
ChangeLog.pre-2-2 Loading commit data...
ChangeLog.pre-2-4 Loading commit data...
ChangeLog.pre-2-6 Loading commit data...
ChangeLog.pre-2-8 Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
INSTALL.in Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
NEWS.pre-1-0 Loading commit data...
README Loading commit data...
README.cvs-commits Loading commit data...
README.in Loading commit data...
README.win32 Loading commit data...
acconfig.h Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.h.win32.in Loading commit data...
configure.in Loading commit data...
gdk-2.0-uninstalled.pc.in Loading commit data...
gdk-2.0.pc.in Loading commit data...
gdk-pixbuf-2.0-uninstalled.pc.in Loading commit data...
gdk-pixbuf-2.0.pc.in Loading commit data...
gtk+-2.0-uninstalled.pc.in Loading commit data...
gtk+-2.0.pc.in Loading commit data...
gtk+.spec.in Loading commit data...
gtk-config-2.0.in Loading commit data...
gtk-zip.sh.in Loading commit data...
makecopyright Loading commit data...
makefile.msc Loading commit data...
sanitize-la.sh Loading commit data...
sanity_check Loading commit data...