Hi!

Andy Wingo <wi...@pobox.com> writes:

> On Sat 25 Sep 2010 23:49, l...@gnu.org (Ludovic Courtès) writes:
>
>> Andy Wingo <wi...@pobox.com> writes:
>>
>>> What's the purpose of set-thread-vm! ?
>>
>> See commit 639b2eb7107b26207d13bb8acb4c1d38d7dba3bd : it is used to work
>> around that fact that ‘scm_call_N’ uses whatever ‘scm_the_vm’ returns,
>> which may be different from the calling VM.
>>
>> Perhaps that would be better solved by having ‘the-vm’ be a real fluid,
>> though.
>>
>> Thoughts?
>
> I removed these accessors, because they're not really threadsafe, and
> they don't work in the way you expect. We should probably also exclude
> multiple threads from using the same VM.
>
> Anyway now there is call-with-vm, which I believe does what you want it
> to do. Does that work for you?

Yes, perfect!

(And it even does more, which looks nice.  :-))

Thanks,
Ludo’.

Reply via email to