[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: faster pthread_getspecific



Alexander Terekhov wrote:
What's "static constructor" ("C++ programs thread-local variables must not require a static constructor.")? Do you mean dynamic initialization?

I'll take a crack at this, since it seems obvious:


Static contruction is when you invoke a constructor before main(), e.g.

static myObject foo;

This invoks myObject::myObject() early, and is presumably
illegal if myObject contains any native TLS.

- Dan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]