Files
sdk/runtime/bin/lockers.h
Vyacheslav Egorov 939cdfbfcd [vm] Move bin/lockers.h to platform/lockers.h
We have to place these classes into a platform namespace to avoid
conflicts with vm/lockers.h.

To avoid changes to files in bin we simply change bin/lockers.h
to introduce bin::{Monitor,Mutex}Locker aliases for
platform::{Monitor,Mutex}Locker.

TEST=ci
R=kustermann@google.com

Change-Id: I975f24a8499ea85d0ba887180a81287fcf4101bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/405460
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2025-01-23 04:19:48 -08:00

21 lines
553 B
C++

// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_BIN_LOCKERS_H_
#define RUNTIME_BIN_LOCKERS_H_
#include "platform/assert.h"
#include "platform/lockers.h"
namespace dart {
namespace bin {
using MutexLocker = dart::platform::MutexLocker;
using MonitorLocker = dart::platform::MonitorLocker;
} // namespace bin
} // namespace dart
#endif // RUNTIME_BIN_LOCKERS_H_