Skip to content

Commit 9937557

Browse files
committed
---
yaml --- r: 23166 b: refs/heads/master c: 3dbce4e h: refs/heads/master v: v3
1 parent a9a698e commit 9937557

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9470e5d7d56b4e697e6ba96e8f0cc10c64f0bdf0
2+
refs/heads/master: 3dbce4ebea8b36c873b1b29e5a56d5a8b86feee6
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libstd/sync.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ impl &rwlock {
315315
* tasks may run concurrently with this one.
316316
*/
317317
fn read<U>(blk: fn() -> U) -> U {
318+
let mut release = none;
318319
unsafe {
319320
do task::unkillable {
320321
do (&self.order_lock).access {
@@ -328,9 +329,9 @@ impl &rwlock {
328329
(&self.access_lock).acquire();
329330
}
330331
}
332+
release = some(rwlock_release_read(self));
331333
}
332334
}
333-
let _z = rwlock_release_read(self);
334335
blk()
335336
}
336337

0 commit comments

Comments
 (0)