| 140 | }; |
| 141 | |
| 142 | void TWaitableNamedPipeImpl::beginAsyncRead(uint8_t* buf, uint32_t len) { |
| 143 | begin_unread_idx_ = end_unread_idx_ = 0; |
| 144 | readOverlap_.reset(buf, len, ready_event_.h); |
| 145 | thread_->addWorkItem(&readOverlap_); |
| 146 | if (readOverlap_.success == FALSE && readOverlap_.last_error != ERROR_IO_PENDING) { |
| 147 | TOutput::instance().perror("TPipe ::ReadFile errored GLE=", readOverlap_.last_error); |
| 148 | throw TTransportException(TTransportException::UNKNOWN, "TPipe: ReadFile failed"); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | uint32_t TWaitableNamedPipeImpl::endAsyncRead() { |
| 153 | return readOverlap_.overlappedResults(); |
nothing calls this directly
no test coverage detected