Make SymbolFileDWARF::GetCachedSectionData thread safe
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Use std::call_once instead of a std::atomic+std::mutex combination based on some offline discussion with Pavel
Comment Actions
The new version of the patch looks much cleaner than the old one. Thanks.
source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | ||
---|---|---|
641 | shorter and probably more efficient: |
shorter and probably more efficient:
std::call_once(m_flag, &SFD::LoadSectionData, this, sect_type, std::ref(data_segment.m_data));