diff options
author | 2018-08-06 14:41:01 -0700 | |
---|---|---|
committer | 2018-08-06 14:45:30 -0700 | |
commit | e8def0cec8cf2399e333dbe804f29ae26e8997c9 (patch) | |
tree | 1d43d93dca7aef6940b5dfb4a7e73d88db87b9f9 /tensorflow/BUILD | |
parent | 2c6ae175591a687aae4d3ab69b5719d0b656ea13 (diff) |
Add missing annotation to mutex_lock's move constructor.
Because ~mutex_lock() is marked as an UNLOCK_FUNCTION, we have to mark
the move constructor as locking ml.mu_. Otherwise if you try to move a
mutex_lock, clang sees the destructor call and thinks that the mutex has
been unlocked for good.
Same for tf_shared_lock.
Also make tf_shared_lock's move constructor non-explicit. This is just
a performance optimization; tf_shared_lock was already copyable.
PiperOrigin-RevId: 207610922
Diffstat (limited to 'tensorflow/BUILD')
0 files changed, 0 insertions, 0 deletions