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
Is there any reason why there isn't an ATOMIC_PTR_INIT (cf ATOMIC_BOOL_INIT, ATOMIC_ISIZE_INIT, &c.) struct? I'd like to use AtomicPtrs in statically-initialized variables - and AtomicPtr is the only atomic class that doesn't implement the Default trait. A std::ptr::null_mut() seems to be a sensible initial value.
The text was updated successfully, but these errors were encountered:
Is there any reason why there isn't an
ATOMIC_PTR_INIT
(cfATOMIC_BOOL_INIT
,ATOMIC_ISIZE_INIT
, &c.) struct? I'd like to use AtomicPtrs in statically-initialized variables - andAtomicPtr
is the only atomic class that doesn't implement theDefault
trait. A std::ptr::null_mut() seems to be a sensible initial value.The text was updated successfully, but these errors were encountered: