Closed joergczeranski closed 1 year ago
Don't re-initialize flags_entries every time get_entries_for_flag is called, only once per function template instance. This fixes a write-write race condition (undefined behavior) when multiple threads/strands instantiate the same state machine.
Don't re-initialize flags_entries every time get_entries_for_flag is called, only once per function template instance. This fixes a write-write race condition (undefined behavior) when multiple threads/strands instantiate the same state machine.