Threads and static initialization.
Michel Fortin
michel.fortin at michelf.com
Sat Dec 18 03:35:19 PST 2010
On 2010-12-18 01:53:04 -0500, Jonathan M Davis <jmdavisProg at gmx.com> said:
> However, anything that involves the heap wouldn't be okay, and that's a
> _lot_ of
> variables. Any and all references and pointers - inluding dynamic
> arrays - would
> be in TLS unless you marked them as shared.
Things stored in the heap are *not* stored in thread-local storage. TLS
is for thread-local global and static variables. Having TLS variables
uninitialized shouldn't a problem when playing with the heap.
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list