mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-12-24 05:48:25 +00:00
According to the [WASI thread specification](https://github.com/WebAssembly/wasi-threads/pull/16), some thread identifiers are reserved and should not be used. In fact, only IDs between `1` and `0x1FFFFFFF` are valid. The thread ID allocator has been moved to a separate class to avoid polluting the `lib_wasi_threads_wrapper` logic. |
||
|---|---|---|
| .. | ||
| lib_wasi_threads_wrapper.c | ||
| lib_wasi_threads.cmake | ||
| tid_allocator.c | ||
| tid_allocator.h | ||