| 83 | |
| 84 | protected: |
| 85 | explicit BackgroundReader(int fd) : fd_(fd), total_bytes_(0) { |
| 86 | file_handle_ = reinterpret_cast<HANDLE>(_get_osfhandle(fd)); |
| 87 | ARROW_CHECK_NE(file_handle_, INVALID_HANDLE_VALUE); |
| 88 | event_ = |
| 89 | CreateEvent(nullptr, /* bManualReset=*/TRUE, /* bInitialState=*/FALSE, nullptr); |
| 90 | ARROW_CHECK_NE(event_, INVALID_HANDLE_VALUE); |
| 91 | } |
| 92 | |
| 93 | void LoopReading() { |
| 94 | const HANDLE handles[] = {file_handle_, event_}; |
nothing calls this directly
no test coverage detected