Skip to content

Commit

Permalink
STYLE: Remove legacy content from "itkMultiThreader.h"
Browse files Browse the repository at this point in the history
"itkMultiThreader.h" was deprecated already from ITK 5.0.
  • Loading branch information
N-Dekker committed May 23, 2024
1 parent 10d11d6 commit ee60e13
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions Modules/Compatibility/Deprecated/include/itkMultiThreader.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,7 @@
#define itkMultiThreader_h

#if !defined(ITK_LEGACY_REMOVE)
# include "itkMultiThreaderBase.h"
# include "itkPlatformMultiThreader.h"
namespace itk
{
/** Since ITK 5.0 MultiThreader has been split into a class hierarchy.
* Most of the time you will want to replace it by MultiThreaderBase.
*
* Additionally, call this->DynamicMultiThreadingOff(); prior to Update()
* (for example in constructor) if any of the following is true:
* - Your filter needs a constant, in-advance known number of threads
* - Your filter uses threadId parameter in ThreadedGenerateData()
* - Your filter uses a custom region splitting method */
using MultiThreader = MultiThreaderBase;


/** Replace it by PlatformMultiThreader if any of the following is true:
* - Your filter uses cross-thread synchronization e.g. itkBarrier
* - Your filter uses MultipleMethodExecute()
* - Your filter uses SpawnThread/TerminateThread. */
// using MultiThreader = PlatformMultiThreader;
} // namespace itk
#else // ITK_LEGACY_REMOVE
# error itkMultiThreader.h is a legacy file since ITK 5.0 and will be removed in the future.
# error itkMultiThreader.h is a legacy file since ITK 5.0. Its original content is removed after ITK 5.4.
#endif // ITK_LEGACY_REMOVE

#endif // itkMultiThreader_h

0 comments on commit ee60e13

Please sign in to comment.