233 size_t threadStackSizeBytes = Thread::osDefaultStackSize,
279 bool deleteJobWhenFinished);
289 void addJob (std::function<
void()> job);
309 bool interruptIfRunning,
310 int timeOutMilliseconds);
323 bool removeAllJobs (
bool interruptRunningJobs,
324 int timeOutMilliseconds,
328 int getNumJobs() const noexcept;
331 int getNumThreads() const noexcept;
358 int timeOutMilliseconds) const;
363 void moveJobToFront (const
ThreadPoolJob* jobToMove) noexcept;
368 StringArray getNamesOfAllJobs (
bool onlyReturnActiveJobs) const;
374 struct ThreadPoolThread;
381 bool runNextJob (ThreadPoolThread&);
388 void removeAllJobs (
bool,
int,
bool);
390 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
ThreadPool)