| 2821 | } |
| 2822 | |
| 2823 | int js_std_poll_io(JSContext *ctx, int timeout_ms) |
| 2824 | { |
| 2825 | int ret = js_os_poll_internal(ctx, timeout_ms, 0); |
| 2826 | /* map return codes: -1 on error stays -1, negative from handler becomes -2 */ |
| 2827 | if (ret < -1) |
| 2828 | return -2; |
| 2829 | return ret; |
| 2830 | } |
| 2831 | #else // !defined(_WIN32) |
| 2832 | static int js_os_poll_internal(JSContext *ctx, int timeout_ms, int flags) |
| 2833 | { |
no test coverage detected