Skip to content

Commit d9bd666

Browse files
iinozemtsevCommit Queue
authored andcommitted
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 <[email protected]> Reviewed-by: Daco Harkes <[email protected]> Commit-Queue: Ivan Inozemtsev <[email protected]>
1 parent e5253f1 commit d9bd666

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/platform/synchronization_absl.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Mutex::~Mutex() {}
1919

2020
ABSL_NO_THREAD_SAFETY_ANALYSIS
2121
void Mutex::Lock() {
22-
mutex_.Lock();
22+
mutex_.lock();
2323
owner_.Acquire();
2424
}
2525

2626
ABSL_NO_THREAD_SAFETY_ANALYSIS
2727
bool Mutex::TryLock() {
28-
if (!mutex_.TryLock()) {
28+
if (!mutex_.try_lock()) {
2929
return false;
3030
}
3131
owner_.Acquire();
@@ -35,7 +35,7 @@ bool Mutex::TryLock() {
3535
ABSL_NO_THREAD_SAFETY_ANALYSIS
3636
void Mutex::Unlock() {
3737
owner_.Release();
38-
mutex_.Unlock();
38+
mutex_.unlock();
3939
}
4040

4141
ConditionVariable::ConditionVariable() {}

0 commit comments

Comments
 (0)