Skip to content

Commit f541244

Browse files
committed
---
yaml --- r: 144364 b: refs/heads/try2 c: 5bcb639 h: refs/heads/master v: v3
1 parent 7c8b3d8 commit f541244

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 761f5fba69edb354cb3a02c01099f00c9bc56dc9
8+
refs/heads/try2: 5bcb63983680b0953c8125f375e53db8d64a5dc8
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/rt/message_queue.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ use unstable::sync::Exclusive;
2020
use clone::Clone;
2121

2222
pub struct MessageQueue<T> {
23-
// XXX: Another mystery bug fixed by boxing this lock
24-
priv queue: ~Exclusive<~[T]>
23+
priv queue: Exclusive<~[T]>
2524
}
2625

2726
impl<T: Send> MessageQueue<T> {
2827
pub fn new() -> MessageQueue<T> {
2928
MessageQueue {
30-
queue: ~Exclusive::new(~[])
29+
queue: Exclusive::new(~[])
3130
}
3231
}
3332

@@ -51,7 +50,7 @@ impl<T: Send> MessageQueue<T> {
5150
}
5251
}
5352

54-
impl<T> Clone for MessageQueue<T> {
53+
impl<T: Send> Clone for MessageQueue<T> {
5554
fn clone(&self) -> MessageQueue<T> {
5655
MessageQueue {
5756
queue: self.queue.clone()

branches/try2/src/libstd/rt/sleeper_list.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ use rt::sched::SchedHandle;
2020
use clone::Clone;
2121

2222
pub struct SleeperList {
23-
priv stack: ~Exclusive<~[SchedHandle]>
23+
priv stack: Exclusive<~[SchedHandle]>
2424
}
2525

2626
impl SleeperList {
2727
pub fn new() -> SleeperList {
2828
SleeperList {
29-
stack: ~Exclusive::new(~[])
29+
stack: Exclusive::new(~[])
3030
}
3131
}
3232

@@ -56,4 +56,4 @@ impl Clone for SleeperList {
5656
stack: self.stack.clone()
5757
}
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)