aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc')
-rw-r--r--tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc b/tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc
index 9618717fc5..2452efc779 100644
--- a/tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc
+++ b/tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc
@@ -77,14 +77,14 @@ EventMgr::~EventMgr() {
}
void EventMgr::StartPollingLoop() {
- CHECK(polling_stopped_.get() == nullptr);
+ CHECK(polling_stopped_ == nullptr);
stop_polling_.reset(new Notification);
polling_stopped_.reset(new Notification);
threadpool_.Schedule([this]() { PollLoop(); });
}
void EventMgr::StopPollingLoop() {
- if (stop_polling_.get()) {
+ if (stop_polling_) {
stop_polling_->Notify();
polling_stopped_->WaitForNotification();
stop_polling_.reset(nullptr);