|
-
October 15th, 2009, 03:38 PM
#13
Re: Where to initialize CRITICAL_SECTION in a singleton?
 Originally Posted by Igor Vartanov
Static an global variables are constructed long before any calls become functional on the loaded code. So your fiasco's possibility is imaginary only.
"The problem we're concerened with, involves at least to separately compiled source files, each of which contains at least one non local static object (i.e an object that's global, namespace scope or static in a class or at file scope). And the actual problem is this : if initialzation of a non-local static object in one translation unit uses a non-local static object in a different translation unit, the object it uses could be uninitialized." [Meyers]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|