The original work around (calling the method early) works. Failing that one could add a mutex of some kind around the call, for VC on Windows. Roger.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of chand priyankara Sent: 24 March 2012 17:14 To: Log4CXX Dev Subject: Re: Does log4cxx is thread safe Shall we continue with double locking? On Sat, Mar 24, 2012 at 9:03 PM, Roger Orr <[email protected]> wrote: Rob Riggs wrote: > What version of the compiler are you using? The new C++11 standard > requires that scoped static variables are initialized in a thread-safe > manner. I would expect that VC10/VC11 works correctly. Sadly it seems even VC 11 beta doesn't implement the new standard in this area. I am a little disappointed :-( Regards, Roger. -- <http://uploads.wisestamp.com/6a678a296303219cfebd5c31f3be26f0/1319134154.pn g> Chand Priyankara |(094) 773-361566 |[email protected] |www.blog.friendly.com <http://www.blog.friendly.com/> <http://www.facebook.com/chand.priyankara> Facebook <http://lk.linkedin.com/in/chandpriyankara> LinkedIn <http://chandpriyankara.blogspot.com/> Blogger <http://plus.google.com/104246340732624023499> Google Plus <http://www.iucnredlist.org/amazing-species> <http://images.wisestamp.com/widgets/green_32.png> Please consider your environmental responsibility. Before printing this e-mail message, ask yourself whether you really need a hard copy. <http://p1.wisestamp.com/pixel.png?p=chrome&v=3.9.4.0&t=1319139616414&u=0c64 9d2e16a678a2>
