MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / StartThread

Method StartThread

tensorflow/core/framework/dataset.h:425–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423 }
424
425 std::unique_ptr<Thread> StartThread(const string& name,
426 std::function<void()> fn) {
427 if (params_.thread_factory) {
428 return params_.thread_factory->StartThread(name, std::move(fn));
429 } else {
430 return absl::WrapUnique(
431 Env::Default()->StartThread({}, name, std::move(fn)));
432 }
433 }
434
435 private:
436 Params params_;

Callers 4

TESTFunction · 0.45
BackgroundWorkerMethod · 0.45
CreateThreadMethod · 0.45

Calls 2

WrapUniqueFunction · 0.85
DefaultFunction · 0.85

Tested by 1

TESTFunction · 0.36