mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-15 21:26:00 +08:00
bug #1151: remove useless critical section
This commit is contained in:
parent
690bc950f7
commit
34340458cb
@ -145,14 +145,11 @@ static void run(Index rows, Index cols, Index depth,
|
|||||||
|
|
||||||
// Release all the sub blocks A'_i of A' for the current thread,
|
// Release all the sub blocks A'_i of A' for the current thread,
|
||||||
// i.e., we simply decrement the number of users by 1
|
// i.e., we simply decrement the number of users by 1
|
||||||
#pragma omp critical
|
|
||||||
{
|
|
||||||
for(Index i=0; i<threads; ++i)
|
for(Index i=0; i<threads; ++i)
|
||||||
#pragma omp atomic
|
#pragma omp atomic
|
||||||
info[i].users -= 1;
|
info[i].users -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
#endif // EIGEN_HAS_OPENMP
|
#endif // EIGEN_HAS_OPENMP
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user