emscripten-core/emscripten
Make use of Asyncify for pthread_join
Ouverte
#9 910 ouverte le 27 nov. 2019
asyncifygood first bughelp wantedmultithreading
Métriques du dépôt
- Stars
- (27 361 étoiles)
- Métriques de merge PR
- (Merge moyen 19j 10h) (147 PRs mergées en 30 j)
Description
[Forked from discussion in #9579]
Rather than disallowing blocking on the main thread and giving an escape hatch in form of a setting that still allows it, we could transform pthread_join and friends via Asyncify instead and use Atomics.waitAsync under the hood.
This way the main browser thread wouldn't really be blocked, but the code would be still backwards-compatible and properly wait for thread to finish execution as user expects.