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
If two threads call this function simultaneously when KERNEL_VERS is still 0, then it will result in a data race. A trivial fix is to replace it with an AtomicUsize accessed with Relaxed, since the worst case is that a thread performs a redundant uname() call.
The text was updated successfully, but these errors were encountered:
In
src/features.rs
,kernel_version()
is defined as:If two threads call this function simultaneously when
KERNEL_VERS
is still0
, then it will result in a data race. A trivial fix is to replace it with anAtomicUsize
accessed withRelaxed
, since the worst case is that a thread performs a redundantuname()
call.The text was updated successfully, but these errors were encountered: