CVS update: gnucash

Derek Atkins warlord at MIT.EDU
Mon May 19 19:02:25 CDT 2003


linas at linas.org (Linas Vepstas) writes:

> > Log Message:
> > 	* src/engine/gnc-event*: add an api to force an event even when
> > 	  events are suspended.  Without such an API, events can be lost
> > 	  if the event system is suspended when the event comes in.
> 
> wouldn't the correct fix be to queue the event, and deliver it when
> suspend is turned off?

Perhaps, but that was a lot more work.  Considering the only place I
currently use this feature is "gnc_book_destroy()" i don't think it's
a major issue in the short term.  The other issue is that for most
events you don't want it queued -- so the fact that it's queued
vs. not queued shouldn't make a difference in this case.

I suppose there could be an issue if the "process" that suspended the
events wound up getting this event signalled while it was in the
middle of processing.  For example, if the register suspended events
and, in the process of saving a transaction received an event that
would cause it to close -- that could be a problem.

> --linas

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-patches mailing list