public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: FIFO: code simplification: don't overload get_handle
@ 2019-04-16 11:16 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2019-04-16 11:16 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d243b3c70ea4db87432bccc9437d45f4b740f2ff
commit d243b3c70ea4db87432bccc9437d45f4b740f2ff
Author: Ken Brown <kbrown@cornell.edu>
Date: Sun Apr 14 19:16:00 2019 +0000
Cygwin: FIFO: code simplification: don't overload get_handle
Rename fhandler_fifo::get_handle(int) to get_fc_handle(int), and
remove fhandler_fifo::get_handle(void).
Diff:
---
winsup/cygwin/fhandler.h | 7 ++++---
winsup/cygwin/select.cc | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 59d9dad..1e26c65 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -1284,9 +1284,10 @@ public:
fhandler_fifo ();
bool hit_eof ();
int get_nhandlers () const { return nhandlers; }
- HANDLE& get_handle () { return fhandler_base::get_handle (); }
- HANDLE get_handle (int i) const { return fc_handler[i].fh->get_handle (); }
- bool is_connected (int i) const { return fc_handler[i].state == fc_connected; }
+ HANDLE get_fc_handle (int i) const
+ { return fc_handler[i].fh->get_handle (); }
+ bool is_connected (int i) const
+ { return fc_handler[i].state == fc_connected; }
PUNICODE_STRING get_pipe_name ();
DWORD listen_client_thread ();
void fifo_client_lock () { _fifo_client_lock.lock (); }
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index d257cc4..9cf8928 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -875,7 +875,7 @@ peek_fifo (select_record *s, bool from_select)
for (int i = 0; i < fh->get_nhandlers (); i++)
if (fh->is_connected (i))
{
- int n = pipe_data_available (s->fd, fh, fh->get_handle (i),
+ int n = pipe_data_available (s->fd, fh, fh->get_fc_handle (i),
false);
if (n > 0)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-16 11:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16 11:16 [newlib-cygwin] Cygwin: FIFO: code simplification: don't overload get_handle Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).