File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ impl<T> Lock<T> {
115
115
self . lock_slow ( ) . await
116
116
}
117
117
118
- /// Slow path for acquiring the mutex .
118
+ /// Slow path for acquiring the lock .
119
119
#[ cold]
120
120
pub async fn lock_slow ( & self ) -> LockGuard < T > {
121
121
// Get the current time.
@@ -133,7 +133,7 @@ impl<T> Lock<T> {
133
133
// Unlocked and somebody is starved - notify the first waiter in line.
134
134
s if s % 2 == 0 => self . 0 . lock_ops . notify_one ( ) ,
135
135
136
- // The mutex is currently locked .
136
+ // The lock is currently acquired .
137
137
_ => { }
138
138
}
139
139
@@ -148,7 +148,7 @@ impl<T> Lock<T> {
148
148
// Unlocked and somebody is starved - notify the first waiter in line.
149
149
s if s % 2 == 0 => self . 0 . lock_ops . notify_one ( ) ,
150
150
151
- // The mutex is currently locked .
151
+ // The lock is currently acquired .
152
152
_ => { }
153
153
}
154
154
@@ -182,7 +182,7 @@ impl<T> Lock<T> {
182
182
// Unlocked and somebody is starved - notify the first waiter in line.
183
183
s if s % 2 == 0 => self . 0 . lock_ops . notify_one ( ) ,
184
184
185
- // The mutex is currently locked .
185
+ // The lock is currently acquired .
186
186
_ => { }
187
187
}
188
188
You can’t perform that action at this time.
0 commit comments