File tree 2 files changed +7
-0
lines changed 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
8
8
9
9
- Added ` fexecve ` on DragonFly.
10
10
(#[ 1577] ( https://github.com/nix-rust/nix/pull/1577 ) )
11
+ - ` sys::uio::IoVec ` is now ` Send ` and ` Sync `
12
+ (#[ 1582] ( https://github.com/nix-rust/nix/pull/1582 ) )
11
13
- Added fine-grained features flags. Most Nix functionality can now be
12
14
conditionally enabled. By default, all features are enabled.
13
15
(#[ 1611] ( https://github.com/nix-rust/nix/pull/1611 ) )
Original file line number Diff line number Diff line change @@ -228,3 +228,8 @@ impl<'a> IoVec<&'a mut [u8]> {
228
228
} , PhantomData )
229
229
}
230
230
}
231
+
232
+ // The only reason IoVec isn't automatically Send+Sync is because libc::iovec
233
+ // contains raw pointers.
234
+ unsafe impl < T > Send for IoVec < T > where T : Send { }
235
+ unsafe impl < T > Sync for IoVec < T > where T : Sync { }
You can’t perform that action at this time.
0 commit comments