File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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+
217220impl 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 { }
562566unsafe impl Sync for UnixListener { }
563567
564568impl UnixListener {
@@ -605,13 +609,15 @@ pub struct UnixAcceptor {
605609 deadline : u64 ,
606610}
607611
612+ unsafe impl Send for UnixAcceptor { }
608613unsafe impl Sync for UnixAcceptor { }
609614
610615struct AcceptorState {
611616 abort : Event ,
612617 closed : atomic:: AtomicBool ,
613618}
614619
620+ unsafe impl Send for AcceptorState { }
615621unsafe impl Sync for AcceptorState { }
616622
617623impl UnixAcceptor {
You can’t perform that action at this time.
0 commit comments