Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-07-06 19:42:01 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-07-06 19:42:01 +0400
commit023c25829cef04ee4869063160bdad12fc231d34 (patch)
treee9cab2d22a73a24fc62240fe1fbcfe0bfbd3ddbd /winsup/cygwin/select.h
parent1183d7fb13e9ad0fcd02b8c96c8d413b448b0ae1 (diff)
* cygtls.h (struct _local_storage): Add thread storage pointers for
memory used by socket select functions. Combine them into a single struct select. * cygtls.cc: Accommodate above change throughout. (_cygtls::init_thread): Drop initalizing of sockevt to INVALID_HANDLE_VALUE. (_cygtls::fixup_after_fork): Reset sockevt to NULL. (_cygtls::remove): Don't use sockevt value to bail out prematurely. Set sockevt to NULL. Free malloced select members. * select.h (struct select_socket_info): Drop max_w4 member. * select.cc (thread_socket): Use INFINITE timeout value if number of objects to wait for is <= MAXIMUM_WAIT_OBJECTS. Use num_w4 member of select_socket_info struct rather than dropped max_w4. (init_tls_select_info): New inline function to initialize TLS select members. (start_thread_socket): Just call init_tls_select_info to initialize TLS select members and use them later on. (socket_cleanup): Don't free select_socket_info pointer members since they are thread local now.
Diffstat (limited to 'winsup/cygwin/select.h')
-rw-r--r--winsup/cygwin/select.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/winsup/cygwin/select.h b/winsup/cygwin/select.h
index 766f8c679..743222ebd 100644
--- a/winsup/cygwin/select.h
+++ b/winsup/cygwin/select.h
@@ -58,7 +58,6 @@ struct select_pipe_info: public select_info
struct select_socket_info: public select_info
{
- int max_w4;
int num_w4;
LONG *ser_num;
HANDLE *w4;