[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] calling CHICKEN_eval from different threads
From: |
Thomas Chust |
Subject: |
Re: [Chicken-users] calling CHICKEN_eval from different threads |
Date: |
Thu, 26 Feb 2009 14:13:59 +0100 |
Hello,
even if the calls don't occur in parallel, invoking the CHICKEN
interpreter from different threads is problematic, since distinct
threads usually have distinct stacks which will get CHICKEN's
allocator confused.
If you manage to update the stack base pointer for the allocator
before entering the evaluator every time a thread switch occured, and
if you also make sure that at most one thread is running CHICKEN code
at any time, this should probably work.
cu,
Thomas
--
When C++ is your hammer, every problem looks like your thumb.