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 57d4c86 commit 76f208aCopy full SHA for 76f208a
CHANGELOG.md
@@ -6,6 +6,10 @@ This project adheres to [Semantic Versioning](https://semver.org/).
6
## [Unreleased] - ReleaseDate
7
8
### Added
9
+
10
+- `sys::uio::IoVec` is not `Send` and `Sync`
11
+ (#[1582](https://github.com/nix-rust/nix/pull/1582))
12
13
### Changed
14
### Fixed
15
src/sys/uio.rs
@@ -221,3 +221,8 @@ impl<'a> IoVec<&'a mut [u8]> {
221
}, PhantomData)
222
}
223
224
225
+// The only reason IoVec isn't automatically Send+Sync is because libc::iovec
226
+// contains raw pointers.
227
+unsafe impl<T> Send for IoVec<T> where T: Send {}
228
+unsafe impl<T> Sync for IoVec<T> where T: Sync {}
0 commit comments