aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/stream.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-08-17 14:56:25 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-08-17 15:03:24 -0700
commitb48cfaea2aea3707a33e60c10385a87e37101b95 (patch)
tree897738a42d520918efcc9bbece881c5c2fcce583 /tensorflow/stream_executor/stream.h
parentd30537a10529a73b712d805a1f26fd39ce5be609 (diff)
Make tensorflow::mutex implement a shared (reader/writer) lock, using
open source nsync library. PiperOrigin-RevId: 165633487
Diffstat (limited to 'tensorflow/stream_executor/stream.h')
-rw-r--r--tensorflow/stream_executor/stream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/stream_executor/stream.h b/tensorflow/stream_executor/stream.h
index e218873839..9bd4c21a66 100644
--- a/tensorflow/stream_executor/stream.h
+++ b/tensorflow/stream_executor/stream.h
@@ -1845,7 +1845,7 @@ class Stream {
friend class ocl::CLBlas; // for parent_.
bool InErrorState() const {
- shared_lock lock{mu_};
+ tf_shared_lock lock{mu_};
return !ok_;
}