I don't know why, but I find memory leaks in PoissonRecon::ThreadPool::ParallelSections when I run it on iOS. (It works well on desktop platforms.)
After doing some debugging, l find leaks were caused by std::async(). I have little knowledge on multithreading, so I refer to cppreference and it seems the codes are exactly correct.
Anyway, if ThreadPool::ParallelizationType was set to ThreadPool::ParallelType::NONE, then the multithreading should be disabled everywhere?
I don't know why, but I find memory leaks in PoissonRecon::ThreadPool::ParallelSections when I run it on iOS. (It works well on desktop platforms.)
After doing some debugging, l find leaks were caused by std::async(). I have little knowledge on multithreading, so I refer to cppreference and it seems the codes are exactly correct.
Anyway, if ThreadPool::ParallelizationType was set to ThreadPool::ParallelType::NONE, then the multithreading should be disabled everywhere?