Re: Thread-local copy of data structure

2013-07-30 Thread Ali Çehreli
On 07/30/2013 01:15 PM, Marek Janukowicz wrote: > class A { > B [] arr; > } > Now "a" in my task is the same as "a" in main thread and I'd like a local > copy - to be precise I need to make changes to a in the task, but they > should not affect main copy. Fine: That is a requirement of your p

Thread-local copy of data structure

2013-07-30 Thread Marek Janukowicz
I have quite complicated data structure (class-based) and I need a copy of it in a Task (std.parallelism). There is a simplification of data structure and my program: class A { B [] arr; } class B { C c; } class C { A a; } void main () { a = new A(); ... // Further initialization of