Threads and static initialization.
Vladimir Panteleev
vladimir at thecybershadow.net
Fri Dec 17 16:44:19 PST 2010
On Sat, 18 Dec 2010 01:27:01 +0200, Jonathan M Davis <jmdavisProg at gmx.com>
wrote:
> Except that virtually _everything_ in D is in TLS. Only shared variables
> and
> some immutable variables aren't. So, unless you use a set of functions
> which
> uses shared variables for _everything_, that would be rather useless.
But isn't that what OP's asking?
Also, I wouldn't say it's useless... By _everything_ you mean global and
class/function static variables, right? I can imagine lots of examples of
using threads without having to access those variables.
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list