From c7e69beb52c2c47182eaf8295025a668d0eefd80 Mon Sep 17 00:00:00 2001 From: Sameer Agarwal Date: Tue, 16 Apr 2013 09:39:16 -0700 Subject: [PATCH] Add a missing mutex lock in the SchurEliminator. This was lost somewhere along in the BLAS based refactoring. Change-Id: I90b94fa9c3a8ea1b900a18f76ef6a7d0dbf24318 --- internal/ceres/schur_eliminator_impl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ceres/schur_eliminator_impl.h b/internal/ceres/schur_eliminator_impl.h index 5afb2f2e1..050b1cf60 100644 --- a/internal/ceres/schur_eliminator_impl.h +++ b/internal/ceres/schur_eliminator_impl.h @@ -676,6 +676,7 @@ EBlockRowOuterProduct(const BlockSparseMatrixBase* A, &row_stride, &col_stride); if (cell_info != NULL) { // block += b1.transpose() * b2; + CeresMutexLock l(&cell_info->m); MatrixTransposeMatrixMultiply ( row_values + row.cells[i].position, row.block.size, block1_size,