[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Calling functions in other states
- From: "Javier Guerra" <javier@...>
- Date: Thu, 15 Nov 2007 13:58:29 -0500
On 11/15/07, David Olofson <david@olofson.net> wrote:
> You can implement RPC over a system like this, but RPC is a
> fundamentally broken design unless you really don't have anything
> useful to do while waiting for the "return".
since the threads are created by lua_newthread(), then i guess all are
running on the same C thread, without any multitasking, right? if so,
then he can't do anything "while waiting for the return"
also, since there doesn't seem to be any hard multitasking, then i
guess the whole system could be implemented much easier using
coroutines instead of lua_newthread().
--
Javier