lua-users home
lua-l archive

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


Le 28/02/2011 18:22, Tony Finch a écrit :
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.
Hum... :) What do you mean by "mutate it in place to invalidate it" ?

Thanks.
Tony.


--
=================================
Sylvain FABRE
sylvain.fabre@inpixal.com
Fixe: 09 72 11 30 24
Mobile: 06 30 12 72 34
Fax : 09 72 11 10 71
=================================