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

Method SchedClosureAfter

tensorflow/core/platform/posix/env.cc:167–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 void SchedClosureAfter(int64 micros, std::function<void()> closure) override {
168 // TODO(b/27290852): Consuming a thread here is wasteful, but this
169 // code is (currently) only used in the case where a step fails
170 // (AbortStep). This could be replaced by a timer thread
171 SchedClosure([this, micros, closure]() {
172 SleepForMicroseconds(micros);
173 closure();
174 });
175 }
176
177 Status LoadLibrary(const char* library_filename, void** handle) override {
178 return tensorflow::internal::LoadLibrary(library_filename, handle);

Callers

nothing calls this directly

Calls 1

SchedClosureFunction · 0.85

Tested by

no test coverage detected