wasm-micro-runtime/core/iwasm/libraries/lib-wasi-threads
YAMAMOTO Takashi 6c846acc59
Implement module instance context APIs (#2436)
Introduce module instance context APIs which can set one or more contexts created
by the embedder for a wasm module instance:
```C
    wasm_runtime_create_context_key
    wasm_runtime_destroy_context_key
    wasm_runtime_set_context
    wasm_runtime_set_context_spread
    wasm_runtime_get_context
```

And make libc-wasi use it and set wasi context as the first context bound to the wasm
module instance.

Also add samples.

Refer to https://github.com/bytecodealliance/wasm-micro-runtime/issues/2460.
2023-09-07 14:54:11 +08:00
..
stress-test Add mutex stress test (#2472) 2023-08-30 19:01:44 +08:00
test Revert "Return error when exception was raised after main thread finishes" (#2524) 2023-09-04 18:01:09 +08:00
unit-test Add unit tests for the tid allocator (#2519) 2023-09-04 13:21:10 +08:00
lib_wasi_threads_wrapper.c Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
lib_wasi_threads.cmake Reserve TID values for WASI threads (#1862) 2023-01-06 10:28:25 +08:00
tid_allocator.c Fix issues reported by Coverity and clear windows warnings (#2467) 2023-08-17 10:54:02 +08:00
tid_allocator.h Add unit tests for the tid allocator (#2519) 2023-09-04 13:21:10 +08:00