|author||Ben Wagner <email@example.com>||Thu Oct 29 22:29:00 2020 -0400|
|committer||Akira TAGOH <firstname.lastname@example.org>||Mon Nov 02 05:05:24 2020 +0000|
Fix fc_atomic_ptr_get and use. Before this change building with ThreadSanitizer and running test/test-pthread generated a large number of threading issues. These mostly stemmed from fc_atomic_ptr_get not doing an atomic load and using "acquire load" instead of "load acquire". After making these changes it was still necessary to use fc_atomic_ptr_get where it was needed. This also documents the current memory barrier requirements for the atomic primitives.