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

Method Mutex

tensorflow/core/kernels/mutex_ops.cc:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36class Mutex : public ResourceBase {
37 public:
38 explicit Mutex(OpKernelContext* c, const string& name)
39 : locked_(false),
40 thread_pool_(new thread::ThreadPool(
41 c->env(), ThreadOptions(),
42 strings::StrCat("mutex_lock_thread_", SanitizeThreadSuffix(name)),
43 1 /* num_threads */, false /* low_latency_hint */)),
44 name_(name) {
45 VLOG(2) << "Creating mutex with name " << name << ": " << this;
46 }
47
48 string DebugString() const override {
49 return strings::StrCat("Mutex ", name_);

Callers

nothing calls this directly

Calls 4

ThreadOptionsClass · 0.85
SanitizeThreadSuffixFunction · 0.85
StrCatFunction · 0.50
envMethod · 0.45

Tested by

no test coverage detected