mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
ee71c80b08
Semantically, MsgSocket is !Sync: multiple threads reading/writing to the same end of the socket will result in U.B.. This CL brings the syntactic definition of MsgSocket in line with its semantic meaning by marking it as !Sync. While earlier work caught one of the other consumers that was using a socket end in a Sync manner, this CL has found another: the usb crate. The fixes proposed for the usb crate are mostly for compilation's sake, and should have little material effect on the operation of crosvm. Note that they will assure correctness, since the send/recv for the socket end involved are in the same critical section. BUG=None TEST=builds Change-Id: I38469d9ed3228a43457b7d43879a6b4fff97b9a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2466960 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Noah Gold <nkgold@google.com> |
||
---|---|---|
.. | ||
poll_token_derive | ||
src | ||
Cargo.toml |