OSDN Git Service

* cygtls.h (exitsock): New element.
authorcgf <cgf>
Mon, 11 Oct 2004 02:21:30 +0000 (02:21 +0000)
committercgf <cgf>
Mon, 11 Oct 2004 02:21:30 +0000 (02:21 +0000)
commitb7c489b83e49f2a527b1cd1ebb7b0d2360e39bea
treeebbd1f251d3195047fe63c1a71c7d75877a360df
parent62b55096ca912a75b9e80a9987137bd9145068fa
* cygtls.h (exitsock): New element.
(exitsock_sin): Ditto.
* cygtls.cc (_cygtls::init_thread): Initialize exitsock to invalid handle.
(_cygtls::call2): Close exitsock if it is valid.
* select.cc (struct socketinf): Remove sin element.
(start_thread_socket): Initialize one SOCK_DGRAM socket per thread instead of
(apparently) expensive opening and closing of socket with each select call.
(socket_cleanup): Send a byte to the exitsock socket as a way to potentially
signal a waiting-for-socket thread to exit.
* tlsoffsets.h: Regenerate.
winsup/cygwin/ChangeLog
winsup/cygwin/cygtls.cc
winsup/cygwin/cygtls.h
winsup/cygwin/select.cc
winsup/cygwin/tlsoffsets.h