We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f71ec commit 1a73cccCopy full SHA for 1a73ccc
src/libstd/sys/unix/pipe.rs
@@ -117,6 +117,9 @@ pub struct UnixStream {
117
write_deadline: u64,
118
}
119
120
+unsafe impl Send for UnixStream {}
121
+unsafe impl Sync for UnixStream {}
122
+
123
impl UnixStream {
124
pub fn connect(addr: &CString,
125
timeout: Option<u64>) -> IoResult<UnixStream> {
@@ -215,6 +218,7 @@ pub struct UnixListener {
215
218
path: CString,
216
219
217
220
221
+unsafe impl Send for UnixListener {}
222
unsafe impl Sync for UnixListener {}
223
224
impl UnixListener {
@@ -261,6 +265,7 @@ struct AcceptorInner {
261
265
closed: atomic::AtomicBool,
262
266
263
267
268
+unsafe impl Send for AcceptorInner {}
264
269
unsafe impl Sync for AcceptorInner {}
270
271
impl UnixAcceptor {
0 commit comments