提交 a8e3746e 编写于 作者: S Stefan Lankes

add comment about the usage of Arc

上级 6c983a73
......@@ -35,6 +35,9 @@ fn drop(&mut self) {
}
}
// Arc is used to count the number of used sockets.
// Only if all sockets are released, the drop
// method will close the socket.
#[derive(Clone)]
pub struct TcpStream(Arc<Socket>);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册