guile-user
[Top][All Lists]
Advanced

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

Re: bug: defining things in different threads


From: Neil Jerram
Subject: Re: bug: defining things in different threads
Date: Wed, 19 Nov 2008 23:41:55 +0000

2008/11/15 Linas Vepstas <address@hidden>:
>
> Well, originally, my code loaded a smob interface
> (defined a bunch of smobs)  in thread 1, which I then
> found to be undefined in thread 2 (and all subsequent
> threads).  Would your fix solve this?

I guess yes if the problem was trying to reference the definitions
from the wrong module; no if the problem was define not being
threadsafe.  (And I'm guessing it was the latter.)

> Under the "principle of least surprise", I certainly was
> surprised that not all threads behaved the same; I got
> bitten by this, and wasted a day debugging this, and
> designing a  work-around for this "feature".

Do you mean you think fluids should not exist, or that
(current-module) should not be a fluid?

(On the other hand, if you mean just that define should be threadsafe,
I definitely agree with that!)

       Neil




reply via email to

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