([RunLoop -removeFileDescriptor:forMode:]): Add debugging message.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1135 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-03-13 02:35:25 +00:00
parent 416ccc2e25
commit c4734ce2a0

View file

@ -80,6 +80,8 @@ static RunLoop *current_run_loop;
{ {
/* xxx But actually we should let it be added multiple times, /* xxx But actually we should let it be added multiple times,
and keep count. (?) */ and keep count. (?) */
if (debug_run_loop)
printf ("\tRunLoop adding fd %d\n", fd);
assert (!NSMapGet (_fd_2_object, (void*)fd)); assert (!NSMapGet (_fd_2_object, (void*)fd));
NSMapInsert (_fd_2_object, (void*)fd, invocation); NSMapInsert (_fd_2_object, (void*)fd, invocation);
FD_SET (fd, &_fds); FD_SET (fd, &_fds);
@ -88,6 +90,8 @@ static RunLoop *current_run_loop;
- (void) removeFileDescriptor: (int)fd - (void) removeFileDescriptor: (int)fd
forMode: (id <String>)mode forMode: (id <String>)mode
{ {
if (debug_run_loop)
printf ("\tRunLoop removing fd %d\n", fd);
assert (NSMapGet (_fd_2_object, (void*)fd)); assert (NSMapGet (_fd_2_object, (void*)fd));
NSMapRemove (_fd_2_object, (void*)fd); NSMapRemove (_fd_2_object, (void*)fd);
FD_CLR (fd, &_fds); FD_CLR (fd, &_fds);
@ -130,7 +134,8 @@ static RunLoop *current_run_loop;
#endif #endif
} }
- (void) acceptInputForMode: (id <String>)mode beforeDate: limit_date - (void) acceptInputForMode: (id <String>)mode
beforeDate: limit_date
{ {
NSTimeInterval ti; NSTimeInterval ti;
struct timeval timeout; struct timeval timeout;