mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-10-16 21:12:20 +00:00
0c85cb1fe6
This PR allows reusing thread ids once they are released. That is done by using a stack data structure to keep track of the used ids. When a thread is created, it takes an available identifier from the stack. When the thread exits, it returns the id to the stack of available identifiers. |
||
---|---|---|
.. | ||
lib_wasi_threads_wrapper.c | ||
lib_wasi_threads.cmake |