… | |
… | |
139 | struct timeval tv; |
139 | struct timeval tv; |
140 | int res; |
140 | int res; |
141 | int fd_setsize; |
141 | int fd_setsize; |
142 | |
142 | |
143 | EV_RELEASE_CB; |
143 | EV_RELEASE_CB; |
144 | tv.tv_sec = (long)timeout; |
144 | EV_TV_SET (tv, timeout); |
145 | tv.tv_usec = (long)((timeout - (ev_tstamp)tv.tv_sec) * 1e6); |
|
|
146 | |
145 | |
147 | #if EV_SELECT_USE_FD_SET |
146 | #if EV_SELECT_USE_FD_SET |
148 | fd_setsize = sizeof (fd_set); |
147 | fd_setsize = sizeof (fd_set); |
149 | #else |
148 | #else |
150 | fd_setsize = vec_max * NFDBYTES; |
149 | fd_setsize = vec_max * NFDBYTES; |