diff options
Diffstat (limited to 'runtime/thread.h')
-rw-r--r-- | runtime/thread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/thread.h b/runtime/thread.h index 75b5b123da..4f26803726 100644 --- a/runtime/thread.h +++ b/runtime/thread.h @@ -1567,7 +1567,8 @@ class Thread { class SCOPED_CAPABILITY ScopedAssertNoThreadSuspension { public: - ALWAYS_INLINE ScopedAssertNoThreadSuspension(const char* cause) ACQUIRE(Roles::uninterruptible_) { + ALWAYS_INLINE explicit ScopedAssertNoThreadSuspension(const char* cause) + ACQUIRE(Roles::uninterruptible_) { if (kIsDebugBuild) { self_ = Thread::Current(); old_cause_ = self_->StartAssertNoThreadSuspension(cause); |