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]: natSelectorImplWin32.cc Overhaul for interruptible select()


On Thu, Dec 11, 2003 at 10:58:49AM -0600, Mohan Embar wrote:
> Hi People,
> 
> This patch overhauls implSelect() in natSelectorImplWin32.cc to
> support thread interruption. I completely removed _Jv_select()
> from the MinGW port and rewrote implSelect() to use
> WSAWaitForMultipleEvents as well as the current thread's
> interrupt event to test for thread interruption. In doing so,
> I needed to change WSAEventWrapper in win32.h/.cc
> to add a default constructor needed for the array of
> wrappers in implSelect().
> 
> I'll let this sit here for a day or two before committing, unless
> someone screams beforehand.
> 
> -- Mohan
> http://www.thisiscool.com/
> http://www.animalsong.org/
> 
> ChangeLog
> 2003-12-11  Mohan Embar  <gnustuff@thisiscool.com>
> 
> 	* win32.cc (WSAEventWrapper): Implemented default
> 	constructor and init() methods.
> 	(_Jv_select): Removed.
> 	* gnu/java/nio/natSelectorImplWin32.cc
> 	(helper_put_filedescriptors): Removed.
> 	(helper_get_filedescriptors): Removed.
> 	(implSelect): Implemented in terms of WSAEventWrapper
> 	and WSAWaitForMultipleEvents instead of _Jv_select().
> 	Added support for thread interruption.
> 	* include/win32.h (WSAEventWrapper): Minor formatting
> 	changes; added default constructor declaration, init(),
> 	getFD() and getEventHandle() methods.
> 	(_Jv_select): Removed.

Okay with this but I dont know much about Win32. Ranjit can you look on
this ?


Michael


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