SIGN IN SIGN UP

Fix non-reentrant threadpool (#5714)

Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/5714

If we tried to reenter parallel_for, we would deadlock due to trying to acquire the threadpool mutex, which was already held. Removing the mutex (which is unnecessary) didn't fix the problem because pthreadpool has its own internal mutex.

Reviewed By: kimishpatel

Differential Revision: D62052200

fbshipit-source-id: 1be16d581970fa7b6a84a2f5b4e348b4f5069c80
S
Scott Wolchok committed
a5c9dee932b5ae10794536238f29ff284cb2d9cd
Parent: bd03d6b
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 9/27/2024, 6:35:54 PM