bad style: `mutex` is the assertion condition, right? Make it `mutex != nullptr` instead to make this more clear.