* cygheap.h (cygheap_fdget::~cygheap_fdget): Simplify now that refcnt reports

reference count changes itself.
* fhandler.cc (fhandler_base::reset): Set _refcnt to 0.
* fhandler.h (fhandler_base::refcnt): Report refcnt when debugging.
* select.cc (cygwin_select): Set return_on_signal to indicate when select
should be interrupted.
(select_stuff::wait): Keep looping unless return_on_signal is set.
* select.h (select_stuff::return_on_signal): New variable.
(select_stuff::select_stuff): Zero return_on_signal.
This commit is contained in:
Christopher Faylor
2012-01-22 06:45:08 +00:00
parent 5259273091
commit ad87edbe61
7 changed files with 37 additions and 17 deletions

View File

@ -178,7 +178,11 @@ class fhandler_base
HANDLE read_state;
public:
long refcnt(long i = 0) {return _refcnt += i;}
long refcnt(long i = 0)
{
debug_only_printf ("%p, %s, i %d, refcnt %ld", this, get_name (), i, _refcnt + i);
return _refcnt += i;
}
class fhandler_base *archetype;
int usecount;