[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: safely buffering Lua data between (system) threads & lua_States?
- From: "lists@..." <lists@...>
- Date: Sat, 16 Sep 2006 02:09:53 -0700
OK I found this: http://lua-users.org/wiki/ThreadsTutorial
Makes a bit more sense; I should implement lua_lock and lua_unlock to
ensure thread safety.
Is this all still true for 5.1?
On Sep 15, 2006, at 5:15 PM, Luiz Henrique de Figueiredo wrote:
How much can I copy Lua data around between distinct
states (assuming thread safety is managed correctly)?
If you have got your locking right, you can use lua_xmove if the Lua
states are related (ie, children of the same Lua top state).