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>2011-05-03 19:58:52 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-05-03 19:58:52 +0400
commit781822a646eb87f01ce47b98dea8fbc7dfc4d177 (patch)
tree76b3d06050a367e5eb83187818ce5bad7697b626 /winsup/cygwin/select.h
parent3728c79d484e9fa62dc3306af076c31e998d2ab3 (diff)
* select.cc (cygwin_select): Make degenerate case cancelable.
(select_stuff::destroy): New inline method to delete memory taken by select_stuff. (select_stuff::~select_stuff): Call destroy. (select_stuff::wait): Add case to allow canceling select. * select.h (select_stuff::destroy): Declare. * thread.cc: Mark poll, pselect and poll as cancelable.
Diffstat (limited to 'winsup/cygwin/select.h')
-rw-r--r--winsup/cygwin/select.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/select.h b/winsup/cygwin/select.h
index 8734b1e04..2f5434bc8 100644
--- a/winsup/cygwin/select.h
+++ b/winsup/cygwin/select.h
@@ -83,6 +83,7 @@ public:
int poll (fd_set *readfds, fd_set *writefds, fd_set *exceptfds);
int wait (fd_set *readfds, fd_set *writefds, fd_set *exceptfds, DWORD ms);
void cleanup ();
+ void destroy ();
select_stuff (): always_ready (0), windows_used (0), start (0),
device_specific_pipe (0),
device_specific_socket (0),