diff options
Diffstat (limited to 'src/libstd/sys/windows/pipe.rs')
| -rw-r--r-- | src/libstd/sys/windows/pipe.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/pipe.rs b/src/libstd/sys/windows/pipe.rs index bf658d0efd0..11226f53e17 100644 --- a/src/libstd/sys/windows/pipe.rs +++ b/src/libstd/sys/windows/pipe.rs @@ -559,6 +559,8 @@ pub struct UnixListener { name: CString, } +unsafe impl Sync for UnixListener {} + impl UnixListener { pub fn bind(addr: &CString) -> IoResult<UnixListener> { // Although we technically don't need the pipe until much later, we @@ -603,11 +605,15 @@ pub struct UnixAcceptor { deadline: u64, } +unsafe impl Sync for UnixAcceptor {} + struct AcceptorState { abort: Event, closed: atomic::AtomicBool, } +unsafe impl Sync for AcceptorState {} + impl UnixAcceptor { pub fn accept(&mut self) -> IoResult<UnixStream> { // This function has some funky implementation details when working with |
