GabeRundlett / gvox

MIT License
79 stars 6 forks source link

Fix threading issues on WASM #8

Closed DouglasDwyer closed 7 months ago

DouglasDwyer commented 7 months ago

The WASI SDK doesn't handle threads too well - variables marked as thread_local actually appear to compile as normal static variables on WASM. This was messing up my multithreading code. This PR fixes things.