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

Method WorkerThread

tensorflow/compiler/xla/python/worker_thread.cc:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace xla {
19
20WorkerThread::WorkerThread(tensorflow::Env* env, const std::string& name) {
21 thread_.reset(env->StartThread(tensorflow::ThreadOptions(), name,
22 [this]() { WorkLoop(); }));
23}
24
25WorkerThread::~WorkerThread() {
26 absl::MutexLock lock(&mu_);

Callers

nothing calls this directly

Calls 3

ThreadOptionsClass · 0.85
resetMethod · 0.45
StartThreadMethod · 0.45

Tested by

no test coverage detected