mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 04:35:57 +08:00
bug #1151: remove useless critical section
This commit is contained in:
parent
690bc950f7
commit
34340458cb
@ -145,12 +145,9 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user