guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threads with foreign functions


From: Nic Ferrier
Subject: Re: Threads with foreign functions
Date: 30 Oct 2003 13:56:52 +0000

Ola Leifler <address@hidden> writes:

Clinton Ebadi wrote:
> > When you fork a program, a copy of the address space is made so now the 
> > child 
> > has copies of all the variables in the main program. You need to use 
> > threads 
> > to do what you want to do. Pthreads should work with both Guile 1.6 and 
> > 1.7, 
> > but you must be careful only to access Guile from one thread at a time with 
> > 1.6 (with 1.7 it shouldn't matter as long as Guile is using the pthreads 
> > backend).

1.7 doesn't seem to work from within a pthreads program.

I've run some tests with this but I just get a seg fault in the GC.


Nic Ferrier





reply via email to

[Prev in Thread] Current Thread [Next in Thread]