| 146 | typedef ::tensorflow::mutex mutex_type; |
| 147 | |
| 148 | explicit mutex_lock(mutex_type& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(&mu) { |
| 149 | mu_->lock(); |
| 150 | } |
| 151 | |
| 152 | mutex_lock(mutex_type& mu, std::try_to_lock_t) EXCLUSIVE_LOCK_FUNCTION(mu) |
| 153 | : mu_(&mu) { |