lua-users home
lua-l archive

Re: Extending luaproc with userdata in messages

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


On 2011年2月28日, Sylvain Fabre wrote:
> * move mode : This will allow the user to use a "zero copy"
> mechanism, by just moving the userdata content pointer to the
> destination thread. Of course, it means that the source thread
> does not need anymore the userdata. So i want to find a way to set
> the variable pointing to the userdata to 'nil', in order to
> unvalidate the userdata on the source side.
>
> Do you have a proper method to perform this move mode ?
There is no single variable that refers to the userdata. You will have to
mutate it in place to invalidate it.
Tony.
-- 
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Malin: Mainly southerly or southwesterly, 4 or 5. Moderate or rough becoming
very rough in north and west later. Rain for a time. Moderate or good.

AltStyle によって変換されたページ (->オリジナル) /