Class ProcessorMultithread

Inheritance Relationships

Derived Types

Class Documentation

class ProcessorMultithread

Multithreaded execution processor

Subclassed by SmartPeak::SampleGroupProcessorMultithread, SmartPeak::SequenceProcessorMultithread, SmartPeak::SequenceSegmentProcessorMultithread

Public Functions

size_t getNumWorkers(unsigned int n_threads) const

Determine the number of workers available based on the maximum available threads and the desired thread count. 1 thread will always be preserved for the GUI unless the maximum number of available threads couldn’t be determined

Parameters

n_threads[in] desired number of threads to use

virtual void run_processing() = 0