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
mainly the locking of dictionaries, or the usage of a :dead field for later mass removal, or the usage of a thread safe dictionary for agent container.
(this means that we need to change the agent container types in the source code from Dict to AbstrcactDict and from Vector to AbstractVector)
The text was updated successfully, but these errors were encountered:
I would remove the locking of dictionaries because it is not specific enough in my opinion (clearly we can say that this is the methodology a thread safe dictionary in ThreadSafeDict.jl uses though), I like the other suggestions but the thread safe dictionary one should be tested if it actually works at all before proposing it
The points from this post as useful to have in the docs:
https://discourse.julialang.org/t/multi-threads-error-undefreferror-in-simple-abm-with-agents-jl/110900/19
mainly the locking of dictionaries, or the usage of a
:dead
field for later mass removal, or the usage of a thread safe dictionary for agent container.(this means that we need to change the agent container types in the source code from
Dict
toAbstrcactDict
and fromVector
toAbstractVector
)The text was updated successfully, but these errors were encountered: