chromium/mojo/public/cpp/bindings/urgent_message_scope.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "mojo/public/cpp/bindings/urgent_message_scope.h"

#include "third_party/abseil-cpp/absl/base/attributes.h"

namespace mojo {

namespace {
// `UrgentMessageScope` is stack allocated and should never cross tasks, so
// using thread local is good enough to avoid collisions.
ABSL_CONST_INIT thread_local bool is_in_urgent_message_scope =;
}  // namespace

UrgentMessageScope::UrgentMessageScope()
    :{}

UrgentMessageScope& UrgentMessageScope::operator=(UrgentMessageScope&& other) =
    default;

UrgentMessageScope::UrgentMessageScope(UrgentMessageScope&& other) = default;

UrgentMessageScope::~UrgentMessageScope() = default;

// static
bool UrgentMessageScope::IsInUrgentScope() {}

}  // namespace mojo