lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Monday 10 April 2006 5:38 am, Mildred wrote:
> I tried to use pluto, in order to copy all lua objects, but I didn't
> suceed. I'm now trying to create a lua_xcopy function that would be
> able to copy lua objects from one lua state to another, without making
> links betwen the two lua states. But it's not that easy (especially for
> closures/functions and threads :)

if you're using pthreads, and protecting the lua states with locks; why do you 
need to copy objects?  if a lua thread is derived from the original state, it 
can directly access any object there.

-- 
Javier

Attachment: pgpBpnzJpZhGP.pgp
Description: PGP signature