Re: Non-GC threads

2011-05-17 Thread Vladimir Panteleev
On Sun, 15 May 2011 21:30:32 +0300, Piotr Szturmaj wrote: What are the consequences of using non garbage collected threads in D? If you move pointers around while the GC is looking for them, the GC might miss them and free referenced memory. This will lead to memory corruption. The GC w

Non-GC threads

2011-05-15 Thread Piotr Szturmaj
Hi, What are the consequences of using non garbage collected threads in D? I want to write a reliable communication protocol, but I don't want suspend this code by the GC. Is there any method to bind allocated memory to thread itself, so it will be freed after thread terminates, but not in t