Subj : Re: reliability of setting thread priority To : comp.programming.threads From : David Schwartz Date : Thu Feb 24 2005 12:28 pm wrote in message news:1109230513.726588.207400@z14g2000cwz.googlegroups.com... > 2. I want/need it to work regardless of the order of static > initialization - ie the intent is a StaticLocalCriticalSection, which > may be created/declared in a function called *during* static > initialization, so I can't be sure my global static mutex is created > yet. (And I know that if the function is called during static init, > then there is only one thread running and no need for the CS in the > first place, but I don't *know* that it is called during static init, > only that it *may* be.) > > Am I correct in my thinking? Your global static mutex doesn't need to be created. DS .