Non-GC threads

Piotr Szturmaj bncrbme at jadamspam.pl
Sun May 15 11:30:32 PDT 2011


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 the middle of execution?

This is important because in the other case, GC could free memory 
referenced by non-GC thread.

Piotr


More information about the Digitalmars-d-learn mailing list