… | |
… | |
815 | select (0, 0, 0, 0, &tv); |
815 | select (0, 0, 0, 0, &tv); |
816 | #endif |
816 | #endif |
817 | } |
817 | } |
818 | } |
818 | } |
819 | |
819 | |
|
|
820 | inline_speed int |
|
|
821 | ev_timeout_to_ms (ev_tstamp timeout) |
|
|
822 | { |
|
|
823 | int ms = timeout * 1000. + .999999; |
|
|
824 | |
|
|
825 | return expect_true (ms) ? ms : timeout < 1e-6 ? 0 : 1; |
|
|
826 | } |
|
|
827 | |
820 | /*****************************************************************************/ |
828 | /*****************************************************************************/ |
821 | |
829 | |
822 | #define MALLOC_ROUND 4096 /* prefer to allocate in chunks of this size, must be 2**n and >> 4 longs */ |
830 | #define MALLOC_ROUND 4096 /* prefer to allocate in chunks of this size, must be 2**n and >> 4 longs */ |
823 | |
831 | |
824 | /* find a suitable new size for the given array, */ |
832 | /* find a suitable new size for the given array, */ |