r15748 - gnucash/trunk/src - Add support for (de)compressing in a thread instead of fork.

Andreas Köhler andi5 at cvs.gnucash.org
Fri Mar 23 15:38:11 EDT 2007


Author: andi5
Date: 2007-03-23 15:38:08 -0400 (Fri, 23 Mar 2007)
New Revision: 15748
Trac: http://svn.gnucash.org/trac/changeset/15748

Modified:
   gnucash/trunk/src/backend/file/gnc-backend-file.c
   gnucash/trunk/src/backend/file/io-gncxml-v2.c
   gnucash/trunk/src/bin/gnucash-bin.c
   gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
Log:
Add support for (de)compressing in a thread instead of fork.

Use GThreading system when available, but depend on it on Windows.
Gzipped data files are still loaded by libxml2.  On write, again create
a pipe p and a thread t that gzwrites bytes read from p to a given file.
After the other thread has finished writing to p, it waits for t to
return to avoid loss of data.




More information about the gnucash-patches mailing list