Re: [committed][gdb/symtab] Make per_cu->unit_type atomic

Tom Tromey
2022-07-16T16:05:16Z

>>>>> "Tom" == Tom de Vries via Gdb-patches <gdb-patches@sourceware.org> writes:

Tom> - packed<dwarf_unit_type, 1> m_unit_type = (dwarf_unit_type) 0;
Tom> + std::atomic<packed<dwarf_unit_type, 1>> m_unit_type {(dwarf_unit_type)0};

I was thinking about this patch this morning and I wonder if packed<> is
even needed now that the member is atomic.

Tom