Switch from deprecated absl::Mutex methods

I think synchronization_absl affects only google3, so should be no-op
externally.

Change-Id: I2845991719e5887e77c52528cd8155f1d20bcfaf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/449823
Auto-Submit: Ivan Inozemtsev <iinozemtsev@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Ivan Inozemtsev <iinozemtsev@google.com>
This commit is contained in:
Ivan Inozemtsev
2025-09-16 06:45:10 -07:00
committed by Commit Queue
parent e5253f1ae7
commit d9bd6667c2
+3 -3
View File
@@ -19,13 +19,13 @@ Mutex::~Mutex() {}
ABSL_NO_THREAD_SAFETY_ANALYSIS
void Mutex::Lock() {
mutex_.Lock();
mutex_.lock();
owner_.Acquire();
}
ABSL_NO_THREAD_SAFETY_ANALYSIS
bool Mutex::TryLock() {
if (!mutex_.TryLock()) {
if (!mutex_.try_lock()) {
return false;
}
owner_.Acquire();
@@ -35,7 +35,7 @@ bool Mutex::TryLock() {
ABSL_NO_THREAD_SAFETY_ANALYSIS
void Mutex::Unlock() {
owner_.Release();
mutex_.Unlock();
mutex_.unlock();
}
ConditionVariable::ConditionVariable() {}