Commit db531bf1cd0e2999cee83154f7859fac1c317128
1 parent
f5b90eec
Name OpenMP critical zone in GFilename::is_fits() to avoid deadlock.
Showing
1 changed file
with
1 additions
and
1 deletions
src/support/GFilename.cpp
| ... | ... | @@ -264,7 +264,7 @@ bool GFilename::is_fits(void) const |
| 264 | 264 | // Put the code into a critical zone as it might be called from within |
| 265 | 265 | // a parallelized thread. |
| 266 | 266 | #if defined(HAVE_LIBCFITSIO) |
| 267 | - #pragma omp critical | |
| 267 | + #pragma omp critical(GFilename_is_fits) | |
| 268 | 268 | { |
| 269 | 269 | int status = 0; |
| 270 | 270 | fitsfile* fptr = NULL; | ... | ... |