File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
branches/auto/src/libcore/rt Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: d2a1378ed8dd3693511836fdee656d8f79089a73
17
+ refs/heads/auto: fa18a861fbd934c295990e59b20c7a0498b88f08
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ use vec::OwnedVector;
14
14
use cell:: Cell ;
15
15
use option:: * ;
16
16
use unstable:: sync:: { Exclusive , exclusive} ;
17
+ use clone:: Clone ;
17
18
18
19
pub struct MessageQueue < T > {
19
20
// XXX: Another mystery bug fixed by boxing this lock
@@ -41,4 +42,12 @@ impl<T: Owned> MessageQueue<T> {
41
42
}
42
43
}
43
44
}
44
- }
45
+ }
46
+
47
+ impl < T > Clone for MessageQueue < T > {
48
+ fn clone ( & self ) -> MessageQueue < T > {
49
+ MessageQueue {
50
+ queue : self . queue . clone ( )
51
+ }
52
+ }
53
+ }
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ use vec::OwnedVector;
14
14
use unstable:: sync:: { Exclusive , exclusive} ;
15
15
use cell:: Cell ;
16
16
use kinds:: Owned ;
17
+ use clone:: Clone ;
17
18
18
19
pub struct WorkQueue < T > {
19
20
// XXX: Another mystery bug fixed by boxing this lock
@@ -56,3 +57,11 @@ pub impl<T: Owned> WorkQueue<T> {
56
57
self . queue . with_imm ( |q| q. is_empty ( ) )
57
58
}
58
59
}
60
+
61
+ impl < T > Clone for WorkQueue < T > {
62
+ fn clone ( & self ) -> WorkQueue < T > {
63
+ WorkQueue {
64
+ queue : self . queue . clone ( )
65
+ }
66
+ }
67
+ }
You can’t perform that action at this time.
0 commit comments