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]

[Patch] Fix gethwnd race


Although not the complete rewrite you may have been hoping for, the
attached patch does appear to fix the:

Winmain: Cannot register window class, Win32 error 1410

portion of this bug:

http://www.cygwin.com/ml/cygwin/2004-05/msg00232.html

I still see:

recv: No buffer space available

but have only pursued it to the point of being sure it is unrelated.  I'll
look at it more later if time permits.

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

	* window.cc (window_started): Change type to long and make NO_COPY.
	(Winmain): Use InterlockedExchange instead of SetEvent.
	(gethwnd): Fix initialization race using InterlockedExchange
	based state table.

-- 
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.patch
Description: Text document


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