If you are calling it from your audio thread, careful with the lock inside ThreadPool::addJob().
In practice this is rarely a problem if you aren’t adding lots of jobs at once but for a lock free version of threadPool take a look here: Lock free thread pool
1 Like
