[wasm-shape] Comment re thread-safety

This commit is contained in:
Behdad Esfahbod 2023-02-26 14:05:26 -07:00
parent 7e5064ac1b
commit f5a0bd223b
1 changed files with 5 additions and 1 deletions

View File

@ -120,8 +120,12 @@ _hb_wasm_init ()
* It's clunky that we can't allocate a static mutex.
* So we have to first allocate one on the heap atomically...
*
* Do we also need to lock around module creation?
*
* Also, wasm-micro-runtime uses a singleton instance. So if
* another library or client uses it, all bets are off. :-( */
* another library or client uses it, all bets are off. :-(
* If nothing else, around HB_REF2OBJ().
*/
static bool initialized;
if (initialized)