Skip to content

runners/calculator: add mutex for CALCULATOR creation/destruction

Yifan Zhu requested to merge work/fanzhuyifan/fix into master

When using the search field in the overview effect with multiple monitors, multiple concurrent calls to match(...) are issued. Since Qalculate is initialized on demand, multiple calls to its constructor may be issued at the same time. This can cause race conditions in accessing the global CALCULATOR instance. Add mutex to protect its construction and destruction.

BUG: 478998

@teams/qa

Edited by Yifan Zhu

Merge request reports