Introduce NoDestructorTest.PriorityInversionAtStaticInitializationResolves
I had voiced concerns about this when NoDestructor was introduced as a strictly preferred alternative to LazyInstance @ https://groups.google.com/a/chromium.org/d/msg/cxx/rs_iizoAu6w/Gi6s0pmwBQAJ. This CL migrates LazyInstanceTest.PriorityInversionAtInitializationResolves to the NoDestructor thread-safe scoped-static-initialization paradigm. It seems to be okay after all and this CL locks this in on all platforms. Bug: 925323 Change-Id: I679beaf23934840b6070a8592dd6d678992d6943 Reviewed-on: https://chromium-review.googlesource.com/c/1436198 Auto-Submit: Gabriel Charette <gab@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#626223}
Showing
Please register or sign in to comment