Loading...
Searching...
No Matches
juce::ThreadPool::JobSelector Class Referenceabstract

Detailed Description

A callback class used when you need to select which ThreadPoolJob objects are suitable for some kind of operation.

See also
ThreadPool::removeAllJobs

Public Member Functions

virtual ~JobSelector ()=default
virtual bool isJobSuitable (ThreadPoolJob *job)=0
 Should return true if the specified thread matches your criteria for whatever operation that this object is being used for.

Constructors and Destructors

◆ ~JobSelector()

virtual juce::ThreadPool::JobSelector::~JobSelector ( )
virtualdefault

Member Functions

◆ isJobSuitable()

virtual bool juce::ThreadPool::JobSelector::isJobSuitable ( ThreadPoolJob * job)
pure virtual

Should return true if the specified thread matches your criteria for whatever operation that this object is being used for.

Any implementation of this method must be extremely fast and thread-safe!

References juce::ThreadPool::ThreadPoolJob.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram