Skip to content

Commit

Permalink
Removed OpenMP code (closes #4130)
Browse files Browse the repository at this point in the history
We already concluded a long time ago the introduction of OMP was quite ineffective at speeding up
performance

Most of this code was removed previously. This just gets rid of a few remnants that snuck back in
when we rolled back the master branch.
  • Loading branch information
Vultraz committed Jul 25, 2019
1 parent 90c7335 commit edaeca2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/display.cpp
Expand Up @@ -2969,9 +2969,6 @@ void display::invalidate_all()
{
DBG_DP << "invalidate_all()\n";
invalidateAll_ = true;
#ifdef _OPENMP
#pragma omp critical(invalidated_)
#endif //_OPENMP
invalidated_.clear();
}

Expand All @@ -2981,9 +2978,6 @@ bool display::invalidate(const map_location& loc)
return false;

bool tmp;
#ifdef _OPENMP
#pragma omp critical(invalidated_)
#endif //_OPENMP
tmp = invalidated_.insert(loc).second;
return tmp;
}
Expand All @@ -2994,9 +2988,6 @@ bool display::invalidate(const std::set<map_location>& locs)
return false;
bool ret = false;
for (const map_location& loc : locs) {
#ifdef _OPENMP
#pragma omp critical(invalidated_)
#endif //_OPENMP
ret = invalidated_.insert(loc).second || ret;
}
return ret;
Expand All @@ -3011,9 +3002,6 @@ bool display::propagate_invalidation(const std::set<map_location>& locs)
return false; // propagation never needed

bool result = false;
#ifdef _OPENMP
#pragma omp critical(invalidated_)
#endif //_OPENMP
{
// search the first hex invalidated (if any)
std::set<map_location>::const_iterator i = locs.begin();
Expand Down

0 comments on commit edaeca2

Please sign in to comment.