about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2015-01-26 00:06:12 +0100
committerFlavio Percoco <flaper87@gmail.com>2015-01-26 09:12:28 +0100
commitfde4472848b662a4d1236388c4cf15e2450237e6 (patch)
treec63bee8a602f669fdde0bf9a1b34c332924c3992 /src/libstd/sys/unix/stack_overflow.rs
parentfff5600925cf3bbee2befd6957b727016765ebd0 (diff)
downloadrust-fde4472848b662a4d1236388c4cf15e2450237e6.tar.gz
rust-fde4472848b662a4d1236388c4cf15e2450237e6.zip
Make Unix and Windows impls consistent
There are some explicit Send/Sync implementations for Window's types
that don't exist in Unix. While the end result will be the same, I
believe it's clearer if we keep the explicit implementations consistent
by making the os-specific types Send/Sync where needed and possible.

This commit addresses tcp. Existing differences below:

src/libstd/sys/unix/tcp.rs
unsafe impl Sync for TcpListener {}
unsafe impl Sync for AcceptorInner {}

src/libstd/sys/windows/tcp.rs
unsafe impl Send for Event {}
unsafe impl Sync for Event {}
unsafe impl Send for TcpListener {}
unsafe impl Sync for TcpListener {}
unsafe impl Send for TcpAcceptor {}
unsafe impl Sync for TcpAcceptor {}
unsafe impl Send for AcceptorInner {}
unsafe impl Sync for AcceptorInner {}
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions