Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leaks caused by std::async on iOS #310

Open
wamwamja opened this issue Nov 1, 2024 · 1 comment
Open

Memory leaks caused by std::async on iOS #310

wamwamja opened this issue Nov 1, 2024 · 1 comment

Comments

@wamwamja
Copy link

wamwamja commented Nov 1, 2024

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?

@mkazhdan
Copy link
Owner

mkazhdan commented Nov 1, 2024

Thanks for catching that.
Not sure why that's happening.
The current implementation always uses async when parallelsection is invoked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants