mirror of https://github.com/CGAL/cgal
Replace tbb::atomic
This commit is contained in:
parent
33cefe1be7
commit
9872ac9cf8
|
|
@ -81,7 +81,7 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
typedef tbb::atomic<unsigned int> Erase_counter_type;
|
||||
typedef std::atomic<unsigned int> Erase_counter_type;
|
||||
Erase_counter_type m_erase_counter;
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ struct Profile_counter
|
|||
Profile_counter(const std::string & ss)
|
||||
: s(ss)
|
||||
{
|
||||
i = 0; // needed here because of tbb::atomic
|
||||
i = 0; // needed here because of std::atomic
|
||||
}
|
||||
|
||||
void operator++() { ++i; }
|
||||
|
|
@ -107,7 +107,7 @@ struct Profile_counter
|
|||
|
||||
private:
|
||||
#ifdef CGAL_CONCURRENT_PROFILE
|
||||
tbb::atomic<unsigned int> i;
|
||||
std::atomic<unsigned int> i;
|
||||
#else
|
||||
unsigned int i;
|
||||
#endif
|
||||
|
|
@ -167,7 +167,7 @@ struct Profile_branch_counter
|
|||
Profile_branch_counter(const std::string & ss)
|
||||
: s(ss)
|
||||
{
|
||||
i = j = 0; // needed here because of tbb::atomic
|
||||
i = j = 0; // needed here because of std::atomic
|
||||
}
|
||||
|
||||
void operator++() { ++i; }
|
||||
|
|
@ -183,7 +183,7 @@ struct Profile_branch_counter
|
|||
|
||||
private:
|
||||
#ifdef CGAL_CONCURRENT_PROFILE
|
||||
tbb::atomic<unsigned int> i, j;
|
||||
std::atomic<unsigned int> i, j;
|
||||
#else
|
||||
unsigned int i, j;
|
||||
#endif
|
||||
|
|
@ -196,7 +196,7 @@ struct Profile_branch_counter_3
|
|||
Profile_branch_counter_3(const std::string & ss)
|
||||
: s(ss)
|
||||
{
|
||||
i = j = k = 0; // needed here because of tbb::atomic
|
||||
i = j = k = 0; // needed here because of std::atomic
|
||||
}
|
||||
|
||||
void operator++() { ++i; }
|
||||
|
|
@ -214,7 +214,7 @@ struct Profile_branch_counter_3
|
|||
|
||||
private:
|
||||
#ifdef CGAL_CONCURRENT_PROFILE
|
||||
tbb::atomic<unsigned int> i, j, k;
|
||||
std::atomic<unsigned int> i, j, k;
|
||||
#else
|
||||
unsigned int i, j, k;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue