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]

Guile in C-threads


I've got a threaded C program and I want to be able
to run a scheme script in each of the threads. The
easiest way to do this would be to start a guile
environment in each thread (gh_enter ()), but
since the threads share all global data, this seems
impossible. 
Can guile store its environment in an object, so 
each thread can run its own instance of the guile 
interpreter or can all threads share the same guile 
environment, but run the scripts as separate scheme 
threads?

// Oskar Linde