summaryrefslogtreecommitdiff
path: root/runtime/thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/thread.cc')
-rw-r--r--runtime/thread.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/thread.cc b/runtime/thread.cc
index 719ecfbf9c..46856e3e99 100644
--- a/runtime/thread.cc
+++ b/runtime/thread.cc
@@ -1724,8 +1724,10 @@ bool Thread::RequestSynchronousCheckpoint(Closure* function, ThreadState wait_st
}
}
if (!is_suspended) {
- bool success =
- Runtime::Current()->GetThreadList()->WaitForSuspendBarrier(&wrapped_barrier.barrier_);
+ bool success = !Runtime::Current()
+ ->GetThreadList()
+ ->WaitForSuspendBarrier(&wrapped_barrier.barrier_)
+ .has_value();
CHECK(success);
}