Re: Double-Checked Locking pattern issue
- From: "Tom Widmer [VC++ MVP]" <tom_usenet@xxxxxxxxxxx>
- Date: Thu, 03 Jan 2008 13:03:07 +0000
George wrote:
Thanks for your correction, Ben!
I agree with you. :-)
I understand generally reorder instructions to fully utilize pipeline is a good idea. But I want to know in my specific case, why swap step 2 and step 3 is faster? Could you provide more description please?
I should mention that the compiler might also do this re-ordering. Are you familiar with the 'as-if' rule?
Tom
.
- Follow-Ups:
- Re: Double-Checked Locking pattern issue
- From: George
- Re: Double-Checked Locking pattern issue
- References:
- Re: Double-Checked Locking pattern issue
- From: Ben Voigt [C++ MVP]
- Re: Double-Checked Locking pattern issue
- From: George
- Re: Double-Checked Locking pattern issue
- Prev by Date: Re: File Compressed or not?
- Next by Date: Re: File Compressed or not?
- Previous by thread: Re: Double-Checked Locking pattern issue
- Next by thread: Re: Double-Checked Locking pattern issue
- Index(es):
Relevant Pages
|