| 41 | } |
| 42 | |
| 43 | void Read(user_op::KernelComputeContext* ctx) { |
| 44 | CHECK(load_thrd_.joinable()) << "You should call StartLoadThread before read data"; |
| 45 | auto batch = FetchBatchData(); |
| 46 | parser_->Parse(batch, ctx); |
| 47 | } |
| 48 | |
| 49 | void Close() { |
| 50 | if (!is_closed_.load()) { |