You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use_file: Use AtomicI32 instead of AtomicUsize to avoid conversions (#480)
All the targets that use `use_file` support `AtomicI32`. Using
`AtomicI32` eliminates `as` conversions and thus avoids any possibility
of truncation or confusion between `FD_UNINIT` and a valid file
descriptor.
Use -1 as the sentinel value for `FD_UNINIT` since libstd (only)
guarantees that -1 is not a valid file descriptor value.
Minimize the scope of `FD_UNINIT`.
0 commit comments