Skip to content

Commit

Permalink
COMP: exclude mutex for modules used by dcmqi
Browse files Browse the repository at this point in the history
  • Loading branch information
jadh4v committed Aug 16, 2024
1 parent 1868b1d commit eddb514
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
#include "itkSimpleDataObjectDecorator.h"
#include "itkHistogram.h"
#include "itkPrintHelper.h"
#include <mutex>
#if !defined(__wasi__) && !defined(__EMSCRIPTEN__)
#include <mutex>
#endif
#include <unordered_map>
#include <vector>

Expand Down Expand Up @@ -419,7 +421,9 @@ class ITK_TEMPLATE_EXPORT LabelStatisticsImageFilter : public ImageSink<TInputIm
RealType m_LowerBound{};
RealType m_UpperBound{};

#if !defined(__wasi__) && !defined(__EMSCRIPTEN__)
std::mutex m_Mutex{};
#endif

}; // end of class
} // end namespace itk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ LabelStatisticsImageFilter<TInputImage, TLabelImage>::ThreadedStreamedGenerateDa
{
MapType tomerge{};
{
#if !defined(__wasi__) && !defined(__EMSCRIPTEN__)
const std::lock_guard<std::mutex> lockGuard(m_Mutex);
#endif

if (m_LabelStatistics.empty())
{
Expand Down

0 comments on commit eddb514

Please sign in to comment.