File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
- # version 1.1.2
1
+ # Version 1.1.3
2
+
3
+ - Update dependencies.
4
+
5
+ # Version 1.1.2
2
6
3
7
- Fix a deadlock issue.
4
8
5
- # version 1.1.1
9
+ # Version 1.1.1
6
10
7
11
- Fix some typos.
8
12
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " async-lock"
3
- version = " 1.1.2 "
3
+ version = " 1.1.3 "
4
4
authors = [" Stjepan Glavina <stjepang@gmail.com>" ]
5
5
edition = " 2018"
6
6
description = " Reference-counted async lock"
@@ -13,8 +13,8 @@ categories = ["asynchronous", "concurrency"]
13
13
readme = " README.md"
14
14
15
15
[dependencies ]
16
- event-listener = " 1.2 .0"
16
+ event-listener = " 2.0 .0"
17
17
18
18
[dev-dependencies ]
19
- smol = " 0.1.10 "
19
+ smol = " 0.1.18 "
20
20
futures = " 0.3.5"
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl<T> Lock<T> {
152
152
_ => {
153
153
// Notify the first listener in line because we probably received a
154
154
// notification that was meant for a starved task.
155
- self . 0 . lock_ops . notify_one ( ) ;
155
+ self . 0 . lock_ops . notify ( 1 ) ;
156
156
break ;
157
157
}
158
158
}
@@ -190,7 +190,7 @@ impl<T> Lock<T> {
190
190
// Lock is available.
191
191
_ => {
192
192
// Be fair: notify the first listener and then go wait in line.
193
- self . 0 . lock_ops . notify_one ( ) ;
193
+ self . 0 . lock_ops . notify ( 1 ) ;
194
194
}
195
195
}
196
196
@@ -287,7 +287,7 @@ impl<T> Drop for LockGuard<T> {
287
287
fn drop ( & mut self ) {
288
288
// Remove the last bit and notify a waiting lock operation.
289
289
( self . 0 ) . 0 . state . fetch_sub ( 1 , Ordering :: Release ) ;
290
- ( self . 0 ) . 0 . lock_ops . notify_one ( ) ;
290
+ ( self . 0 ) . 0 . lock_ops . notify ( 1 ) ;
291
291
}
292
292
}
293
293
You can’t perform that action at this time.
0 commit comments