This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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] [MinGW]: Reset/Ignore Thread Interruption for Plain[Datagram]SocketImpl


On Thu, Dec 11, 2003 at 10:28:13PM -0600, Mohan Embar wrote:
> Hi People,
> 
> Operations on Plain[Datagram]Socket aren't
> interruptible under Sun's JRE; this patch simply
> resets and ignores the thread's interrupted
> flag after such operations. With this patch,
> I get an almost-perfect diff with the attached test
> between Sun's JRE 1.4.2 and gcj on Win32.
> 
> -- Mohan
> http://www.thisiscool.com/
> http://www.animalsong.org/
> 
> ChangeLog
> 2003-12-11  Mohan Embar  <gnustuff@thisiscool.com>
> 
> 	* gnu/java/net/natPlainDatagramSocketImplWin32.cc:
> 	Removed unused InterruptedIOException.h include.
> 	* gnu/java/net/natPlainSocketImplWin32.cc
> 	(connect): Reset and ignore our thread's interrupted
> 	flag instead of testing and throwing an InterruptedIOException
> 	if set.
> 	(accept): Likewise + changed case of SocketTimeoutException
> 	text.
> 	(write): Likewise (for both overloads).
> 	(doRead): Likewise.

I dont know enough about the threading stuff. I would like if Tom or
Bryce or Andrew can approve such type of changes. The other (case
changing) things are okay.


Michael


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