opencog / atomspace

The OpenCog (hyper-)graph database and graph rewriting system
https://wiki.opencog.org/w/AtomSpace
Other
796 stars 225 forks source link

Fix unlikely lock-order inversion #3011

Closed linas closed 1 year ago

linas commented 1 year ago

This allows one thread to add atoms to the AtomSpace while another thread is clearing the entire AtomSpace. Certainly a very unlikely scenario, but it was flagged as a lock order inversion by tsan. The fix is fast and simple, so go for it.