Stream: git-wasmtime

Topic: wasmtime / issue #5210 c-api: add wasi_config_set_stdout_...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 05 2022 at 12:51):

ShuP1 commented on issue #5210:

Are the pipes safe to span threads?
Safe to move to another thread but may lock.

Or even maybe dead lock during concurrent use ?
This reaches the limit of my understand of rust async...

https://docs.rs/wasi-common/latest/src/wasi_common/pipe.rs.html#112
RwLock is locked in an async function who does not use await.
So no "context switch" ? and no risk for another thread to hung on this lock ?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 05 2022 at 12:52):

ShuP1 commented on issue #5210:

I'd avoid wasm_byte_vec_t as it's cumbersome to work with and instead use read/write-style buffer passing

Does this point also includes changing that ?

void wasi_config_set_stdin_bytes(wasi_config_t* config, wasm_byte_vec_t* binary);
// to
void wasi_config_set_stdin_bytes(wasi_config_t* config, const byte_t*, size_t);

view this post on Zulip Wasmtime GitHub notifications bot (Nov 05 2022 at 13:00):

github-actions[bot] commented on issue #5210:

Subscribe to Label Action

cc @peterhuene

<details>
This issue or pull request has been labeled: "wasmtime:c-api"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>


Last updated: Nov 22 2024 at 17:03 UTC