diff options
author | fcolin | 2004-03-24 10:10:15 +0000 |
---|---|---|
committer | fcolin | 2004-03-24 10:10:15 +0000 |
commit | 2d30718caf0f081f72fa1b9f89bb8d53a06c7116 (patch) | |
tree | ff7ec69a1accc054df83d975d8277a77f0088177 /src/ivyloop.c | |
parent | c4882d9a22570672b064fe62cb81e48c651259f5 (diff) | |
download | ivy-c-2d30718caf0f081f72fa1b9f89bb8d53a06c7116.zip ivy-c-2d30718caf0f081f72fa1b9f89bb8d53a06c7116.tar.gz ivy-c-2d30718caf0f081f72fa1b9f89bb8d53a06c7116.tar.bz2 ivy-c-2d30718caf0f081f72fa1b9f89bb8d53a06c7116.tar.xz |
Pb de mainloop TCL sous windows
Diffstat (limited to 'src/ivyloop.c')
-rw-r--r-- | src/ivyloop.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ivyloop.c b/src/ivyloop.c index c3022ab..9ccd427 100644 --- a/src/ivyloop.c +++ b/src/ivyloop.c @@ -192,3 +192,28 @@ void IvyMainLoop(void(*hook)(void)) } } +void IvyIdle() +{ + + fd_set rdset; + fd_set exset; + int ready; + struct timeval timeout = {0,0}; + + + ChannelDefferedDelete(); + rdset = open_fds; + exset = open_fds; + ready = select(64, &rdset, 0, &exset, &timeout); + if (ready < 0 && (errno != EINTR)) { + fprintf (stderr, "select error %d\n",errno); + perror("select"); + return; + } + if (ready > 0) { + IvyChannelHandleExcpt(&exset); + IvyChannelHandleRead(&rdset); + } + +} + |