commit | 447b9ccc7d03bf953d1f1c4708ca16c56c1511ec | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@chromium.org> | Thu Oct 29 22:29:00 2020 -0400 |
committer | Akira TAGOH <akira@tagoh.org> | Mon Nov 02 05:05:24 2020 +0000 |
tree | 5b69e5e01c87bf3d25499c5adf3c4b1a1dde21c9 | |
parent | 4ee43476917b4d203c919471662c7e740cf6205a [diff] |
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.