| 36 | class 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_); |
nothing calls this directly
no test coverage detected