Open
Description
使用cmake和wasi sdk编译cpp生成的wasm应用加载到wamr中运行。并调用本地函数NativeApiMosquittoInit(),由于mosquitto的回调函数on_message是由mosquitto自己内部创建的子线程调用的。所以我需要创建一个新的g_new_exec_env 。执行g_new_exec_env = wasm_runtime_spawn_exec_env(exec_env); 是成功的(返回非0 值)其他功能都正常。
但是通过AssemblyScript编译由TypeScrite编写生成的wasm中调用本地函数NativeApiMosquittoInit(),其中执行g_new_exec_env = wasm_runtime_spawn_exec_env(exec_env);却返回0,
错误提示:[02:48:46:085 - 24BCEEAEC90]: thread manager error: failed to allocate aux stack space for new thread
我需要在AssemblyScript编译时设置些什么呢?或都是哪里弄得不对?
求解答!感谢!
Metadata
Metadata
Assignees
Labels
No labels