[QUARTZ] Use Interlocked* functions in AddRef and Release (3rd TRY)

Paul Vriens Paul.Vriens at xs4all.nl
Wed Jan 5 14:29:47 CST 2005


On Wed, 2005-01-05 at 19:58, Alexandre Julliard wrote:
> Paul Vriens <Paul.Vriens at xs4all.nl> writes:
> 
> > Although it's just a TRACE, should I change them as well. In theory the
> > TRACE could show a wrong value. Is this preferred? :
> 
> Yes, it's not a big deal if the trace is wrong, but fixing it too is
> much better if you don't mind doing it.

Hi (again),

this is a resend of my previous patch. It includes the suggestions made
by AJ and others.

Wherever possible, I changed the TRACE's not to contain This->*ref* (without
changing the text-part).

Not inlined because of size.

More DLL's will follow.

Changelog:
- use Interlocked* functions in AddRef and Release.
- store the result of the Interlocked functions and use only this.

Cheers,

Paul Vriens

-------------- next part --------------
A non-text attachment was scrubbed...
Name: quartz_ref.diff
Type: text/x-patch
Size: 22159 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050105/95aed063/quartz_ref.bin


More information about the wine-patches mailing list