lua-users home
lua-l archive

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


On Mon, 28 Feb 2011, 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.