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]

Re: [Patch] Fix gethwnd race


On Fri, 14 May 2004, Christopher Faylor wrote:

> Well, maybe I didn't do anything, since that is exactly what I did after
> investigating MSDN.  I thought I remembered that this was the case but
> I couldn't see anything in MSDN which supported it.  I suppose I should
> just have trusted Sergey on this one.
>
> So, nevermind on this wonderful enhancement.

Just in case it might still be "interesting", here is a revised no muto
patch with the appropriate fatal error changes.  I think it is pretty
straight forward.  If you still prefer the muto route, please feel free.

2004-05-14  Brian Ford  <ford@vss.fsi.com>

	* window.cc (window_started): Make NO_COPY.
	(Winmain): Make errors api_fatal.
	(gethwnd): Fix initialization race.
	(window_init): New function to initialize window_started.
	* winsup.h (window_init): Prototype it.
	* dcrt0.cc (dll_crt0_1): Call it.

-- 
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]