This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

yRe: [Patch] Fix gethwnd race


On Thu, 13 May 2004, Brian Ford wrote:

> On Thu, 13 May 2004, Christopher Faylor wrote:
> > If it does exist, just return it.  No locking required.
>
> Ok, add:
>
> if (ourhwnd)
>   return ourhwnd;
>
> to the beginning of my patch if your worried about the interlocked
> overhead and don't mind a double test.

Revised patch attached that does this; in case it matters.  ChangeLog
unchanged.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

Attachment: gethwnd_blocking.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]