[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: multi-state version of lua
- From: "Peter Sommerfeld" <peter.sommerfeld@...>
- Date: Sat, 18 Dec 1999 05:00:36 +0100
Brian J. Swetland wrote:
> Awesome. The multistate stuff is very handy -- it'll be nice to see it
> in the official distribution.
>
> Has anyone pondered allowing multiple states to share objects?
>
> It would be handy to be able to have multiple lua threads running at
> once but to have them share objects. Of course this opens a whole
> can of worms regarding locking and so forth.
To avoid that can of worms I would consider a very simple message based
protocol. Of course, this requires deep copies of the message tables passed
by value but even soft-real-time languages like Erlang do so.
-- Peter