diff options
author | Smit Hinsu <hinsu@google.com> | 2018-05-09 12:07:05 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-09 13:13:59 -0700 |
commit | 69bc455e699ba5d3b3227aff1932b556c93974d8 (patch) | |
tree | 5744b90de0c2bf1a6719063487e830d10e1b755d /tensorflow/stream_executor/stream.h | |
parent | d3c2b54c6f10c3bdf0b7001d54556e9e7a8438c6 (diff) |
Use parenthesis based construction instead of brace initialization
Updates all the construction calls for Status, ScopedActivateContext and
mutexes withing stream_executor to follow the recommendation in
https://abseil.io/tips/88
PiperOrigin-RevId: 196007931
Diffstat (limited to 'tensorflow/stream_executor/stream.h')
-rw-r--r-- | tensorflow/stream_executor/stream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/stream_executor/stream.h b/tensorflow/stream_executor/stream.h index 3d1b011c57..2c2879b586 100644 --- a/tensorflow/stream_executor/stream.h +++ b/tensorflow/stream_executor/stream.h @@ -2005,7 +2005,7 @@ class Stream { friend class ocl::CLBlas; // for parent_. bool InErrorState() const LOCKS_EXCLUDED(mu_) { - tf_shared_lock lock{mu_}; + tf_shared_lock lock(mu_); return !ok_; } @@ -2015,7 +2015,7 @@ class Stream { if (operation_retcode) { return; } - mutex_lock lock{mu_}; + mutex_lock lock(mu_); ok_ = false; } |