Re: Double-Checked Locking pattern issue
- From: "Tom Widmer [VC++ MVP]" <tom_usenet@xxxxxxxxxxx>
- Date: Fri, 04 Jan 2008 18:03:30 +0000
George wrote:
Yes, Tom.
Do you have more specific ideas about why there is instruction reordering in my situation?
For a specific example, you'll have to
a) Try compiling a few DCL examples with full optimization and check the assembly for reordering (I have observed reorderings when doing similar things). You might have no luck, but that probably means you haven't tried the right example!
b) Get (or write!) some kind of multiprocessor simulator for a particular architecture, and run it against various DCL examples. This might be impractical for you!
If you don't want a specific example, look at the general examples others have posted and use your imagination...
Tom
.
- 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
- From: Tom Widmer [VC++ MVP]
- Re: Double-Checked Locking pattern issue
- From: George
- Re: Double-Checked Locking pattern issue
- Prev by Date: Re: unhandled exception at 0x7832530f (mfc80ud.dll) when close application
- Next by Date: Re: How to import an existing folder into Visual Studio
- Previous by thread: Re: Double-Checked Locking pattern issue
- Next by thread: Re: Double-Checked Locking pattern issue
- Index(es):
Relevant Pages
|