| 55 | |
| 56 | protected: |
| 57 | void StartLoadThread() { |
| 58 | if (load_thrd_.joinable()) { return; } |
| 59 | load_thrd_ = std::thread([this] { |
| 60 | while (!is_closed_.load() && LoadBatch()) {} |
| 61 | }); |
| 62 | } |
| 63 | |
| 64 | std::unique_ptr<Dataset<LoadTarget>> loader_; |
| 65 | std::unique_ptr<Parser<LoadTarget>> parser_; |