#ifndef PM_SUBTRACTION_THREADS_H
#define PM_SUBTRACTION_THREADS_H

/// Return whether theads have been activated
bool pmSubtractionThreaded(void);

/// Set up threading for image matching
///
/// Sets up thread tasks, and initialises mutexes in readouts
void pmSubtractionThreadsInit(pmReadout *out1, pmReadout *out2, // Output readouts
                              pmReadout *in1, pmReadout *in2 // Input readouts
    );


/// Take down threading for image matching
///
/// Destroys thread tasks, and initialises mutexes in readouts
void pmSubtractionThreadsFinalize(pmReadout *out1, pmReadout *out2, pmReadout *in1, pmReadout *in2);

#endif
