Issue with Using pthread in WASM

Thank you so much for the fix! The example now works smoothly.
It seems the new version introduced some changes, i will try to exploring them