mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Minor tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8674 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5dc51ab6df
commit
64d096cf9c
2 changed files with 12 additions and 6 deletions
|
@ -3,6 +3,9 @@
|
|||
* Source/NSHost.m: New method ([-_addName:]) to add a name to a host.
|
||||
Use it to add the local hostname to the 127.0.0.1 host if there is
|
||||
no IP address set up for the local machine.
|
||||
* Source/NSRunLoop.m: ([-acceptInputForMode:beforeDate:]) improve
|
||||
handling of available descriptors - each descriptor may be available
|
||||
for more than one type of event.
|
||||
|
||||
2001-01-17 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
|
|
|
@ -1260,6 +1260,8 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
|
|||
}
|
||||
do
|
||||
{
|
||||
BOOL found = NO;
|
||||
|
||||
if (FD_ISSET (fdIndex, &exception_fds))
|
||||
{
|
||||
GSRunLoopWatcher *watcher;
|
||||
|
@ -1276,8 +1278,7 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
|
|||
(void*)(gsaddr)fdIndex, _current_mode);
|
||||
}
|
||||
GSNotifyASAP();
|
||||
if (--select_return == 0)
|
||||
break;
|
||||
found = YES;
|
||||
}
|
||||
if (FD_ISSET (fdIndex, &write_fds))
|
||||
{
|
||||
|
@ -1295,8 +1296,7 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
|
|||
(void*)(gsaddr)fdIndex, _current_mode);
|
||||
}
|
||||
GSNotifyASAP();
|
||||
if (--select_return == 0)
|
||||
break;
|
||||
found = YES;
|
||||
}
|
||||
if (FD_ISSET (fdIndex, &read_fds))
|
||||
{
|
||||
|
@ -1314,9 +1314,12 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
|
|||
(void*)(gsaddr)fdIndex, _current_mode);
|
||||
}
|
||||
GSNotifyASAP();
|
||||
if (--select_return == 0)
|
||||
break;
|
||||
found = YES;
|
||||
}
|
||||
if (found == YES && --select_return == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (++fdIndex >= end_inputs)
|
||||
{
|
||||
fdIndex = 0;
|
||||
|
|
Loading…
Reference in a new issue