Questions about the Backend Interface

Derek Atkins warlord@MIT.EDU
06 Mar 2001 18:11:08 -0500


Dave Peticolas <dave@krondo.com> writes:

> > If so, then we just need something like:
> > 	void gncSetEventFlag (void);
> > 
> > and the Backend method can be something like:
> > 	void (*process_event) (Backend *be);
> 
> Ok, I will work on adding this today.

Ok.  We should probably also have a'ClearEventFlag()' for when the
event(s) get handled.

Also, do you plan to make this MT-Safe, or should a multi-threaded
backend use a mutex around these functions?  I don't really care
either way.  I'm kind of thinking that the backend might want to
handle the locking itself, because it will need to lock the
event-staging-area anyways.

> dave

-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@MIT.EDU                        PGP key available