Skip to content

Commit dee744e

Browse files
committed
---
yaml --- r: 166520 b: refs/heads/snap-stage3 c: 11f71ec h: refs/heads/master v: v3
1 parent ddaa866 commit dee744e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 18842f89f084c52588fe7cffe07f87bf6e90796a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f5d619caf9f32458680fae55526b99582ca682dd
4+
refs/heads/snap-stage3: 11f71ec7016952744f999dd6e668825490b1855f
55
refs/heads/try: f5d619caf9f32458680fae55526b99582ca682dd
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libstd/sys/windows/pipe.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ pub struct UnixStream {
214214
write_deadline: u64,
215215
}
216216

217+
unsafe impl Send for UnixStream {}
218+
unsafe impl Sync for UnixStream {}
219+
217220
impl UnixStream {
218221
fn try_connect(p: *const u16) -> Option<libc::HANDLE> {
219222
// Note that most of this is lifted from the libuv implementation.
@@ -559,6 +562,7 @@ pub struct UnixListener {
559562
name: CString,
560563
}
561564

565+
unsafe impl Send for UnixListener {}
562566
unsafe impl Sync for UnixListener {}
563567

564568
impl UnixListener {
@@ -605,13 +609,15 @@ pub struct UnixAcceptor {
605609
deadline: u64,
606610
}
607611

612+
unsafe impl Send for UnixAcceptor {}
608613
unsafe impl Sync for UnixAcceptor {}
609614

610615
struct AcceptorState {
611616
abort: Event,
612617
closed: atomic::AtomicBool,
613618
}
614619

620+
unsafe impl Send for AcceptorState {}
615621
unsafe impl Sync for AcceptorState {}
616622

617623
impl UnixAcceptor {

0 commit comments

Comments
 (0)