Improve and simplify select().

* cygwait.h (cygwait_us) Remove; this reverts previous changes.
	* select.h: Eliminate redundant select_stuff::select_loop state.
	* select.cc (select): Eliminate redundant
	select_stuff::select_loop state.  Eliminate redundant code for
	zero timeout.  Do not return early on early timer return.
	(select_stuff::wait): Eliminate redundant
	select_stuff::select_loop state.
This commit is contained in:
John Hood
2016-02-04 00:44:56 -05:00
committed by Corinna Vinschen
parent 9f82de59a0
commit 472d0a228c
3 changed files with 15 additions and 76 deletions

View File

@@ -78,7 +78,6 @@ public:
enum wait_states
{
select_signalled = -3,
select_loop = -2,
select_error = -1,
select_ok = 0,
select_set_zero = 1