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