File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
branches/try/src/libstd/sync/mpsc Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 557d4346a26266d2eb13f6b0adf106b8873b0da1
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a923278c6278c63468d74772c58dbf788e88f58c
5
- refs/heads/try: 26a79e3c204496f55b8c6ff9db741672554f1705
5
+ refs/heads/try: 1249e6089180211c18fdc381a464274ec95edb25
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ struct Node<T> {
72
72
/// The multi-producer single-consumer structure. This is not cloneable, but it
73
73
/// may be safely shared so long as it is guaranteed that there is only one
74
74
/// popper at a time (many pushers are allowed).
75
- pub struct Queue < T > {
75
+ pub struct Queue < T : Send > {
76
76
head : AtomicPtr < Node < T > > ,
77
77
tail : UnsafeCell < * mut Node < T > > ,
78
78
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const MAX_STEALS: isize = 5;
40
40
#[ cfg( not( test) ) ]
41
41
const MAX_STEALS : isize = 1 << 20 ;
42
42
43
- pub struct Packet < T > {
43
+ pub struct Packet < T : Send > {
44
44
queue : mpsc:: Queue < T > ,
45
45
cnt : AtomicIsize , // How many items are on this channel
46
46
steals : isize , // How many times has a port received without blocking?
You can’t perform that action at this time.
0 commit comments