Passing large or complex data structures to threads

Simen Kjaeraas simen.kjaras at gmail.com
Sun May 26 16:00:20 PDT 2013


On Sun, 26 May 2013 17:59:32 +0200, Ali Çehreli <acehreli at yahoo.com> wrote:

> On 05/26/2013 05:38 AM, Simen Kjaeraas wrote:
>
>
>  >      Tuple!(size_t, size_t)[][] data = createData();
>  >      immutable dataImm = assumeUnique(data);
>  >      data = null; // Simply to ensure no mutable references exist.
>
> The last line is not needed. assumeUnique already does that. :)

Cool. I thought it might.


-- 
Simen


More information about the Digitalmars-d-learn mailing list