• 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
..
pixops Loading commit data...
.cvsignore Loading commit data...
ChangeLog Loading commit data...
Makefile.am Loading commit data...
abicheck.sh Loading commit data...
gdk-pixbuf-animation.c Loading commit data...
gdk-pixbuf-animation.h Loading commit data...
gdk-pixbuf-core.h Loading commit data...
gdk-pixbuf-csource.1 Loading commit data...
gdk-pixbuf-csource.c Loading commit data...
gdk-pixbuf-data.c Loading commit data...
gdk-pixbuf-features.h.in Loading commit data...
gdk-pixbuf-i18n.h Loading commit data...
gdk-pixbuf-io.c Loading commit data...
gdk-pixbuf-io.h Loading commit data...
gdk-pixbuf-loader.c Loading commit data...
gdk-pixbuf-loader.h Loading commit data...
gdk-pixbuf-marshal.list Loading commit data...
gdk-pixbuf-private.h Loading commit data...
gdk-pixbuf-scale.c Loading commit data...
gdk-pixbuf-transform.h Loading commit data...
gdk-pixbuf-util.c Loading commit data...
gdk-pixbuf-xform.c Loading commit data...
gdk-pixbuf.c Loading commit data...
gdk-pixbuf.h Loading commit data...
gdk-pixbuf.symbols Loading commit data...
gdk-pixdata.c Loading commit data...
gdk-pixdata.h Loading commit data...
gdk_pixbuf.rc.in Loading commit data...
io-ani-animation.c Loading commit data...
io-ani-animation.h Loading commit data...
io-ani.c Loading commit data...
io-bmp.c Loading commit data...
io-gif-animation.c Loading commit data...
io-gif-animation.h Loading commit data...
io-gif.c Loading commit data...
io-ico.c Loading commit data...
io-jpeg.c Loading commit data...
io-pcx.c Loading commit data...
io-png.c Loading commit data...
io-pnm.c Loading commit data...
io-ras.c Loading commit data...
io-tga.c Loading commit data...
io-tiff.c Loading commit data...
io-wbmp.c Loading commit data...
io-xbm.c Loading commit data...
io-xpm.c Loading commit data...
make-inline-pixbuf.c Loading commit data...
makefile.msc Loading commit data...
makegdkpixbufalias.pl Loading commit data...
pixbufloader_ani.def Loading commit data...
pixbufloader_bmp.def Loading commit data...
pixbufloader_gif.def Loading commit data...
pixbufloader_ico.def Loading commit data...
pixbufloader_jpeg.def Loading commit data...
pixbufloader_pcx.def Loading commit data...
pixbufloader_png.def Loading commit data...
pixbufloader_pnm.def Loading commit data...
pixbufloader_ras.def Loading commit data...
pixbufloader_tga.def Loading commit data...
pixbufloader_tiff.def Loading commit data...
pixbufloader_wbmp.def Loading commit data...
pixbufloader_xbm.def Loading commit data...
pixbufloader_xpm.def Loading commit data...
queryloaders.c Loading commit data...
test-gdk-pixbuf.c Loading commit data...