From af1dedb879778277dc9fd0759b3defd554d4c947 Mon Sep 17 00:00:00 2001 From: Fan Jiang Date: Tue, 5 Apr 2022 23:25:09 -0400 Subject: [PATCH] Optimize locking --- gtsam/inference/ClusterTree-inst.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gtsam/inference/ClusterTree-inst.h b/gtsam/inference/ClusterTree-inst.h index 98cc613119..9bc1419558 100644 --- a/gtsam/inference/ClusterTree-inst.h +++ b/gtsam/inference/ClusterTree-inst.h @@ -148,15 +148,9 @@ struct EliminationData { } // Set up BayesTree parent and child pointers if (parentData) { -#ifdef GTSAM_USE_TBB - parentData->writeLock->lock(); -#endif if (parentData->parentData) // If our parent is not the dummy node bayesTreeNode->parent_ = parentData->bayesTreeNode; parentData->bayesTreeNode->children.push_back(bayesTreeNode); -#ifdef GTSAM_USE_TBB - parentData->writeLock->unlock(); -#endif } }