Reusing CIDetector in Swift

I am writing an iOS app using swift and need to analyse many photos in parallel. In order to do that, I plan to use a single CIDetector instance (as recommended by Apple).

Is it safe to use the same instance of CIDetector in different threads? Tried to find a documentation about it but had no luck.

Hello,

This is from the Core Image Programming Guide:

Important: CIFilter objects are mutable, so you cannot safely share them between different threads. Each thread must create its own CIFilter objects. However, a filter’s input and output CIImage objects are immutable, and thus safe to pass between threads.

Reusing CIDetector in Swift
 
 
Q