From: Oliver O. <fr...@ro...> - 2007-03-14 06:08:48
|
Hi, On 14/03/2007, at 4:54 PM, Yuan Xu wrote: > It seems that the rb_eval_string_protect is not thread safe, > should I lock the thread to make sure only one thread working? > or there is another solution? > > I really do not know Ruby, please help me. I did a quick check, and it seems the whole ruby C interpreter isn't thread safe. (LUA is, btw. :-). So, we need to make sure that ruby is called only from one thread at a time. This makes the threading thing a lot more difficult, I guess. At least, now I'm more unhappy about the initial choice of taking ruby... :-( but back at the time we started, LUA wasn't that far developed, if I remember correctly (I know that we talked about it). cheers Oliver -- Oliver Obst ES208 form follows function (Louis Sullivan). Fon: +61 2 492 16175 http://oliver.obst.eu/ Uni Newcastle School of Electrical Engineering and Computer Science |