This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can the Guile library be reentrant



> I am porting Guile into a large CAD system called Electric (which will soon
> be a GNU offering).  The problem I am having is that Guile wants control (I
> call "gh_enter" and it never returns).  This is unacceptable for the
> structure of my program, which is message-based, and expects to return to
> the operating system for interrupt-based control.

I don't, offhand, see any reason this is incompatible with gh_enter.
Guile has interfaces to Tk and GTK, which are both event-driven.
Can you explain the problem in more detail?

The general approach of gh_enter is necessary to tell Guile where the
stack starts, so it can do conservative garbage collection.  There was
some discussion about conservative GC a few weeks ago that might help.