MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / StartLoadThread

Method StartLoadThread

oneflow/user/data/data_reader.h:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls 2

threadClass · 0.85
loadMethod · 0.45

Tested by

no test coverage detected