2008/11/15 Linas Vepstas <[EMAIL PROTECTED]>: > > 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