Not sure if this is exactly what you are asking, but there's tsan (ThreadSanitizer):
https://github.com/google/sanitizers/wiki/ThreadSanitizerCpp...
Re:A formal kernel memory-ordering model
by AstralStorm on Thursday June 08, 2017 @05:23PM
(#14517304)
Also perhaps try Relacy concurrency checker.
Is there something that will allow user space programs that do a variety of things to deal with concurrency to show up issues or potential issues?