mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add a lock to the QofSession object, and use it in qof_session_save() to protect against re-entrance. The lock always starts at 1 and is 0 while inside qof_session_save(). If another call is made to qof_session_save() while one is in progress, the lock will momentarily drop below 0 before returning to zero. Note: The per-session nature of the lock would make it appear that we support concurrent saving of different sessions. In fact, we do not, because the file backend blocks the main process until the forked gzip process is finished, and it only knows how to keep track of one child pid at a time. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15168 57a11ea4-9604-0410-9ed3-97b8803252fd
This directory is intended to hold any external code that is needed in order to build gnucash, but isn't considered widely available. ------------------------------------------------ Finance::Quote -------------- Available from http://finance-quote.sourceforge.net. ------------------------------------------------