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
CDRIVER-4220 redefine bson_sync_synchronize in terms of bson_atomic_thread_fence (#1773)
Previously, change 71475df redefined bson_sync_synchronize in terms of __sync_synchronize, avoiding obsolete conditionals and inline asm. It failed on the "public-header-warnings" build target when CC=clang, because all warnings are enabled including -Watomic-implicit-seq-cst.
This change uses bson_atomic_thread_fence instead, which is both the simpler solution and it already includes an exception for the compiler warning. The previous patch was written in an attempt to avoid moving the public bson_sync_synchronize entry point from bson-compat to bson-atomic, but now I know the BSON_INSIDE include guard makes this distinction unnecessary.
0 commit comments