2008-12-30 Bill Holmes <billholmes54@gmail.com>
authorBill Holmes <holmes@mono-cvs.ximian.com>
Tue, 30 Dec 2008 16:58:15 +0000 (16:58 -0000)
committerBill Holmes <holmes@mono-cvs.ximian.com>
Tue, 30 Dec 2008 16:58:15 +0000 (16:58 -0000)
commitd069259e0cc4fab0f4a7a9267a40f3ede7e552ce
tree943d8f7f51e8e6921be0fd75a64289a5143d55f4
parentb5dde2bbdcc5799796ffe40de9ddadd3d78132e0
2008-12-30  Bill Holmes  <billholmes54@gmail.com>

* socket-io.h : Changing the signature of
  ves_icall_System_Net_Sockets_Socket_Accept_internal to pass
  the blocking state.

* icall-def.h :  Changing the signature of
  System.Net.Sockets.Socket.Accept_internal to pass the blocking state.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
  For Windows only.  Avoid blocking when calling accept by
  querying for a connection via select.  The loop also queries
  the thread state every 1000 micro seconds for the thread
  stop state.  This will avoid the process hanging on shutdown
  when using a TcpChannel that is never connected to.

* Socket.cs (Accept_internal) :  Changing the signature to pass
  the blocking state.

Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=122252
mono/metadata/ChangeLog
mono/metadata/icall-def.h
mono/metadata/socket-io.c
mono/metadata/socket-io.h