Hi, > As documented in the libstdc++ manual, the shared pointer operations in > libstdc++ headers can be instrumented by defining the macros > _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE()/AFTER() and libstdc++ has to be > rebuilt in order to instrument the remaining shared pointer operations. > However, rebuilding libstdc++ is inconvenient. So let's move the thread > wrapper code from thread.cc into <thread>.
First, do you have already a Copyright assignment on file? It's a precondition for any non trivial contribution. That said, please leave alone the baselines. Otherwise, Jon can comment on whether the reshuffling makes sense and would be safe from the Abi point of view. Paolo