dcbaker / meson-plus-plus

An experimental and incomplete implementation of Meson in C++, for solving Meson's bootstrapping issue.
Apache License 2.0
50 stars 7 forks source link

mir/passes/threaded: fix lock guards #123

Closed pobrn closed 1 year ago

pobrn commented 1 year ago
The lock guard objects were unnamed, therefore
they were immediately destroyed, thus they
did not keep the mutex locked during the scope
they were declared in. This was found by clang-tidy.

Fixes: 42a15e6eed641662d1ca418690eeeca4fc226a75 ("threaded: encapsulate locking for Job list completely")

dcbaker commented 1 year ago

Thanks!