Getting All Instances of a Thread-Local

dsimcha dsimcha at yahoo.com
Fri Jan 16 21:17:29 PST 2009


Using D2's builtin thread-local storage, is there a way to get all instances
(one per thread) of a given thread-local variable?  If not, can anyone
recommend any workarounds, given that:

1.  Each instance of this variable is not written to after initialization,
i.e. not more than once during the execution of the program.
2.  I must be able to tell instances created by threads that are still alive
from those created by dead threads.  This rules out simply appending the
values to an array.



More information about the Digitalmars-d mailing list