Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Alexander Terekhov Newsgroups: comp.programming.threads Subject: Re: Thread safe logging (or protecting global variables) Date: Wed, 14 Sep 2011 13:17:25 +0200 Organization: A noiseless patient Spider Lines: 13 Message-ID: <4E708D45.C98CF9DF@web.de> References: <49s9q.1564$8D1.58@newsfe19.ams2> <28d00de6-ff3f-429c-acea-62646656400f@r8g2000prd.googlegroups.com> Reply-To: terekhov@web.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="MCbSEzW5qwGLFMNXJh39IQ"; logging-data="22670"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gTSv5jukVosFZD8Bbyjpe2+lzuPHjhbw=" X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en Cancel-Lock: sha1:YBlzl5Yp4mgv28TFyDdK5VUjpO0= Xref: x330-a1.tempe.blueboxinc.net comp.programming.threads:562 Joshua Maurice wrote: [...] > Ugg, I really need to get a real newsreader. Can you see this? Is > there something wrong with my solutions else-thread? There is something wrong with your named mutex solution... compare it to: http://lists.boost.org/Archives/boost/2001/08/15363.php regards, alexander.