diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-01-06 17:56:20 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-01-06 17:56:20 +0000 |
commit | b1244c0df8105b0d52de797ad4d6ec3d56449d0b (patch) | |
tree | f972df246e3b5a1e7b5ee4b15c4d5568a107c358 /src/Persistent_cohomology | |
parent | 4c5123ff11662cb3b9b909a8b513639653be4141 (diff) | |
parent | 3b83c563f5a9992b2eb9a82738e6eebbe471b3e4 (diff) |
Merge of thread_local_no_static branch
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@1934 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 6d7d3fb13b5c480c53b236a502b447902504445c
Diffstat (limited to 'src/Persistent_cohomology')
-rw-r--r-- | src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h index bc8099e6..b3339b7d 100644 --- a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h +++ b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h @@ -300,8 +300,7 @@ class Persistent_cohomology { // with multiplicity. We used to sum the coefficients directly in // annotations_in_boundary by using a map, we now do it later. typedef std::pair<Column *, int> annotation_t; - // Danger: not thread-safe! - static std::vector<annotation_t> annotations_in_boundary; + thread_local std::vector<annotation_t> annotations_in_boundary; annotations_in_boundary.clear(); int sign = 1 - 2 * (dim_sigma % 2); // \in {-1,1} provides the sign in the // alternate sum in the boundary. |