[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: simple and efficient way to have bi-directional communication between lua process
- From: Javier Guerra <javier@...>
- Date: Thu, 8 Feb 2007 14:41:58 -0500
On Thursday 08 February 2007, Asko Kauppi wrote:
> You don't need to dive into OS specific issues, at all. Threads share
> a common address space, so all you have to do is serialize Lua data
> structures into a stream (allocated char array), deserialize it in
> the other thread. I would definately see a need for this + basic
> thread creation (portable) + lazy evaluation, all together in an easy
> to use package.
what would be easier: writing a thin portable layer over pthreads/winthreads,
or discovering the hard way that you shouldn't modify the same structure on
two threads and reinventing semaphores?
--
Javier
Attachment:
pgpx0b45J2wEo.pgp
Description: PGP signature