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
I have just checked that using @atomic x::T in a (mutable) Julia structure seems to be a more correct replacement for C member defined as _Atomic T x; than declaring them as x::Threads.Atomic{T}. With @atomic alignemnt and size seems to be preserved which is not the case with Threads.Atomic{T} because the latter yields a reference to a mutable Julia object.
It looks like
_Atomic
can be supported by simply using the@atomic
macro: https://docs.julialang.org/en/v1/manual/multi-threading/#man-atomicsNeed to study the memory model carefully to make sure both Julia's representation and C/C++'s representation are compatible.
The text was updated successfully, but these errors were encountered: