Skip to content

Commit

Permalink
Fix scope of threading enable check
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd committed Apr 28, 2024
1 parent 8cc9c07 commit 33b9435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/OpenEXR/ImfScanLineInputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ void ScanLineInputFile::Data::readPixels (

////////////////////////////////////////

#if ILMTHREAD_THREADING_ENABLED
void ScanLineInputFile::Data::LineBufferTask::execute ()
{
try
Expand All @@ -517,12 +518,11 @@ void ScanLineInputFile::Data::LineBufferTask::execute ()
}
catch (std::exception &e)
{
#if ILMTHREAD_THREADING_ENABLED
std::lock_guard<std::mutex> lock (_ifd->_mx);
#endif
_ifd->_failures.emplace_back (std::string (e.what()));
}
}
#endif

////////////////////////////////////////

Expand Down

0 comments on commit 33b9435

Please sign in to comment.