krillplayer-plugin 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/LICENSE +2 -1
  2. package/README.md +2 -0
  3. package/dist/cli.js +397 -80
  4. package/dist/crypto.js +38 -11
  5. package/dist/engine/engine.c +6 -3
  6. package/kernel/Sources/CQuickJS/include/kernel_qjs.h +8 -1
  7. package/kernel/Sources/CQuickJS/kernel_internal.h +54 -0
  8. package/kernel/Sources/CQuickJS/kernel_qjs.c +17 -29
  9. package/kernel/Sources/CQuickJS/kernel_wasm.c +1155 -0
  10. package/kernel/Sources/CWAMR/include/kernel_wamr.h +151 -0
  11. package/kernel/Sources/CWAMR/include/kernel_wamr_config.h +66 -0
  12. package/kernel/Sources/CWAMR/vendor/LICENSE +219 -0
  13. package/kernel/Sources/CWAMR/vendor/core/config.h +727 -0
  14. package/kernel/Sources/CWAMR/vendor/core/iwasm/aot/aot_runtime.h +899 -0
  15. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/arch/invokeNative_general.c +123 -0
  16. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_application.c +933 -0
  17. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_blocking_op.c +92 -0
  18. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_c_api.c +5391 -0
  19. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_c_api_internal.h +246 -0
  20. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_exec_env.c +336 -0
  21. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_exec_env.h +328 -0
  22. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_loader_common.c +242 -0
  23. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_loader_common.h +62 -0
  24. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_memory.c +1999 -0
  25. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_memory.h +154 -0
  26. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_native.c +1532 -0
  27. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_native.h +117 -0
  28. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_runtime_common.c +8070 -0
  29. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_runtime_common.h +1396 -0
  30. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_shared_memory.c +477 -0
  31. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_shared_memory.h +63 -0
  32. package/kernel/Sources/CWAMR/vendor/core/iwasm/common/wasm_suspend_flags.h +52 -0
  33. package/kernel/Sources/CWAMR/vendor/core/iwasm/compilation/aot.h +366 -0
  34. package/kernel/Sources/CWAMR/vendor/core/iwasm/include/lib_export.h +60 -0
  35. package/kernel/Sources/CWAMR/vendor/core/iwasm/include/wasm_c_api.h +910 -0
  36. package/kernel/Sources/CWAMR/vendor/core/iwasm/include/wasm_export.h +2440 -0
  37. package/kernel/Sources/CWAMR/vendor/core/iwasm/interpreter/wasm.h +1492 -0
  38. package/kernel/Sources/CWAMR/vendor/core/iwasm/interpreter/wasm_interp.h +122 -0
  39. package/kernel/Sources/CWAMR/vendor/core/iwasm/interpreter/wasm_interp_fast.c +7998 -0
  40. package/kernel/Sources/CWAMR/vendor/core/iwasm/interpreter/wasm_loader.c +16909 -0
  41. package/kernel/Sources/CWAMR/vendor/core/iwasm/interpreter/wasm_loader.h +80 -0
  42. package/kernel/Sources/CWAMR/vendor/core/iwasm/interpreter/wasm_opcode.h +1043 -0
  43. package/kernel/Sources/CWAMR/vendor/core/iwasm/interpreter/wasm_runtime.c +5174 -0
  44. package/kernel/Sources/CWAMR/vendor/core/iwasm/interpreter/wasm_runtime.h +912 -0
  45. package/kernel/Sources/CWAMR/vendor/core/iwasm/libraries/thread-mgr/thread_manager.c +1569 -0
  46. package/kernel/Sources/CWAMR/vendor/core/iwasm/libraries/thread-mgr/thread_manager.h +256 -0
  47. package/kernel/Sources/CWAMR/vendor/core/shared/mem-alloc/ems/ems_alloc.c +1169 -0
  48. package/kernel/Sources/CWAMR/vendor/core/shared/mem-alloc/ems/ems_gc.c +497 -0
  49. package/kernel/Sources/CWAMR/vendor/core/shared/mem-alloc/ems/ems_gc.h +350 -0
  50. package/kernel/Sources/CWAMR/vendor/core/shared/mem-alloc/ems/ems_gc_internal.h +384 -0
  51. package/kernel/Sources/CWAMR/vendor/core/shared/mem-alloc/ems/ems_hmu.c +95 -0
  52. package/kernel/Sources/CWAMR/vendor/core/shared/mem-alloc/ems/ems_kfc.c +547 -0
  53. package/kernel/Sources/CWAMR/vendor/core/shared/mem-alloc/mem_alloc.c +252 -0
  54. package/kernel/Sources/CWAMR/vendor/core/shared/mem-alloc/mem_alloc.h +96 -0
  55. package/kernel/Sources/CWAMR/vendor/core/shared/platform/common/memory/mremap.c +12 -0
  56. package/kernel/Sources/CWAMR/vendor/core/shared/platform/common/posix/posix_blocking_op.c +70 -0
  57. package/kernel/Sources/CWAMR/vendor/core/shared/platform/common/posix/posix_malloc.c +72 -0
  58. package/kernel/Sources/CWAMR/vendor/core/shared/platform/common/posix/posix_memmap.c +302 -0
  59. package/kernel/Sources/CWAMR/vendor/core/shared/platform/common/posix/posix_sleep.c +20 -0
  60. package/kernel/Sources/CWAMR/vendor/core/shared/platform/common/posix/posix_thread.c +784 -0
  61. package/kernel/Sources/CWAMR/vendor/core/shared/platform/common/posix/posix_time.c +28 -0
  62. package/kernel/Sources/CWAMR/vendor/core/shared/platform/darwin/platform_init.c +43 -0
  63. package/kernel/Sources/CWAMR/vendor/core/shared/platform/darwin/platform_internal.h +126 -0
  64. package/kernel/Sources/CWAMR/vendor/core/shared/platform/include/platform_api_extension.h +1676 -0
  65. package/kernel/Sources/CWAMR/vendor/core/shared/platform/include/platform_api_vmcore.h +192 -0
  66. package/kernel/Sources/CWAMR/vendor/core/shared/platform/include/platform_common.h +204 -0
  67. package/kernel/Sources/CWAMR/vendor/core/shared/platform/include/platform_wasi_types.h +610 -0
  68. package/kernel/Sources/CWAMR/vendor/core/shared/platform/linux/platform_init.c +43 -0
  69. package/kernel/Sources/CWAMR/vendor/core/shared/platform/linux/platform_internal.h +139 -0
  70. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_assert.c +25 -0
  71. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_assert.h +42 -0
  72. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_atomic.h +300 -0
  73. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_bitmap.c +27 -0
  74. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_bitmap.h +114 -0
  75. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_common.c +217 -0
  76. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_common.h +83 -0
  77. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_hashmap.c +339 -0
  78. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_hashmap.h +168 -0
  79. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_leb128.c +77 -0
  80. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_leb128.h +30 -0
  81. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_list.c +111 -0
  82. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_list.h +109 -0
  83. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_log.c +111 -0
  84. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_log.h +94 -0
  85. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_platform.h +38 -0
  86. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_queue.c +256 -0
  87. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_queue.h +80 -0
  88. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_vector.c +279 -0
  89. package/kernel/Sources/CWAMR/vendor/core/shared/utils/bh_vector.h +126 -0
  90. package/kernel/Sources/CWAMR/vendor/core/shared/utils/gnuc.h +14 -0
  91. package/kernel/Sources/CWAMR/vendor/core/shared/utils/runtime_timer.c +469 -0
  92. package/kernel/Sources/CWAMR/vendor/core/shared/utils/runtime_timer.h +51 -0
  93. package/kernel/Sources/CWAMR/vendor/core/version.h +24 -0
  94. package/kernel/Sources/CWAMR/wamr_bh_assert.c +98 -0
  95. package/kernel/Sources/CWAMR/wamr_bh_bitmap.c +98 -0
  96. package/kernel/Sources/CWAMR/wamr_bh_common.c +98 -0
  97. package/kernel/Sources/CWAMR/wamr_bh_hashmap.c +98 -0
  98. package/kernel/Sources/CWAMR/wamr_bh_leb128.c +98 -0
  99. package/kernel/Sources/CWAMR/wamr_bh_list.c +98 -0
  100. package/kernel/Sources/CWAMR/wamr_bh_log.c +98 -0
  101. package/kernel/Sources/CWAMR/wamr_bh_queue.c +98 -0
  102. package/kernel/Sources/CWAMR/wamr_bh_vector.c +98 -0
  103. package/kernel/Sources/CWAMR/wamr_ems_alloc.c +98 -0
  104. package/kernel/Sources/CWAMR/wamr_ems_gc.c +98 -0
  105. package/kernel/Sources/CWAMR/wamr_ems_hmu.c +98 -0
  106. package/kernel/Sources/CWAMR/wamr_ems_kfc.c +98 -0
  107. package/kernel/Sources/CWAMR/wamr_invokeNative_general.c +98 -0
  108. package/kernel/Sources/CWAMR/wamr_mem_alloc.c +98 -0
  109. package/kernel/Sources/CWAMR/wamr_mremap.c +98 -0
  110. package/kernel/Sources/CWAMR/wamr_platform_init_darwin.c +100 -0
  111. package/kernel/Sources/CWAMR/wamr_platform_init_linux.c +100 -0
  112. package/kernel/Sources/CWAMR/wamr_posix_blocking_op.c +98 -0
  113. package/kernel/Sources/CWAMR/wamr_posix_malloc.c +98 -0
  114. package/kernel/Sources/CWAMR/wamr_posix_memmap.c +98 -0
  115. package/kernel/Sources/CWAMR/wamr_posix_sleep.c +98 -0
  116. package/kernel/Sources/CWAMR/wamr_posix_thread.c +98 -0
  117. package/kernel/Sources/CWAMR/wamr_posix_time.c +98 -0
  118. package/kernel/Sources/CWAMR/wamr_runtime_timer.c +98 -0
  119. package/kernel/Sources/CWAMR/wamr_thread_manager.c +98 -0
  120. package/kernel/Sources/CWAMR/wamr_wasm_application.c +98 -0
  121. package/kernel/Sources/CWAMR/wamr_wasm_blocking_op.c +98 -0
  122. package/kernel/Sources/CWAMR/wamr_wasm_c_api.c +98 -0
  123. package/kernel/Sources/CWAMR/wamr_wasm_exec_env.c +98 -0
  124. package/kernel/Sources/CWAMR/wamr_wasm_interp_fast.c +98 -0
  125. package/kernel/Sources/CWAMR/wamr_wasm_loader.c +98 -0
  126. package/kernel/Sources/CWAMR/wamr_wasm_loader_common.c +98 -0
  127. package/kernel/Sources/CWAMR/wamr_wasm_memory.c +98 -0
  128. package/kernel/Sources/CWAMR/wamr_wasm_native.c +98 -0
  129. package/kernel/Sources/CWAMR/wamr_wasm_runtime.c +98 -0
  130. package/kernel/Sources/CWAMR/wamr_wasm_runtime_common.c +98 -0
  131. package/kernel/Sources/CWAMR/wamr_wasm_shared_memory.c +98 -0
  132. package/kernel/Sources/Kernel/PluginPrelude.js +5 -2
  133. package/kernel/Tests/KernelTests/CasePins.js +50 -0
  134. package/package.json +2 -2
  135. package/skill/krillplayer-plugin/SKILL.md +2 -0
  136. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-content-rejected.json +8 -4
  137. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-login-expired.json +8 -4
  138. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-muted.json +8 -4
  139. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-other.json +8 -4
  140. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-rate-limited.json +8 -4
  141. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-sent.json +8 -4
  142. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/play-live-logged-in.json +39 -0
  143. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/play-live-selected-backup-line.json +46 -0
  144. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/play-live-selected-line-gone.json +46 -0
  145. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/play-live.json +21 -1
  146. package/skill/krillplayer-plugin/assets/samples/live-video-platform/plugin.ts +39 -4
  147. package/skill/krillplayer-plugin/references/cases.md +20 -2
  148. package/skill/krillplayer-plugin/references/contract.d.ts +114 -12
  149. package/skill/krillplayer-plugin/references/crypto-tools.md +104 -0
  150. package/skill/krillplayer-plugin/references/errors-and-fixes.md +5 -1
@@ -0,0 +1,256 @@
1
+ /*
2
+ * Copyright (C) 2019 Intel Corporation. All rights reserved.
3
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
+ */
5
+
6
+ #ifndef _THREAD_MANAGER_H
7
+ #define _THREAD_MANAGER_H
8
+
9
+ #include "bh_common.h"
10
+ #include "bh_log.h"
11
+ #include "wasm_export.h"
12
+ #include "../interpreter/wasm.h"
13
+ #include "../common/wasm_runtime_common.h"
14
+ #if WASM_ENABLE_SHARED_HEAP != 0
15
+ #include "../common/wasm_memory.h"
16
+ #endif
17
+
18
+ #ifdef __cplusplus
19
+ extern "C" {
20
+ #endif
21
+
22
+ #if WASM_ENABLE_DEBUG_INTERP != 0
23
+ typedef struct WASMDebugInstance WASMDebugInstance;
24
+ #endif
25
+
26
+ struct WASMCluster {
27
+ struct WASMCluster *next;
28
+
29
+ korp_mutex lock;
30
+ bh_list exec_env_list;
31
+
32
+ #if WASM_ENABLE_HEAP_AUX_STACK_ALLOCATION == 0
33
+ /* The aux stack of a module with shared memory will be
34
+ divided into several segments. This array store the
35
+ stack top of different segments */
36
+ uint64 *stack_tops;
37
+ /* Record which segments are occupied */
38
+ bool *stack_segment_occupied;
39
+ #endif
40
+ /* Size of every stack segment */
41
+ uint32 stack_size;
42
+ /* When has_exception == true, this cluster should refuse any spawn thread
43
+ * requests, this flag can be cleared by calling
44
+ * wasm_runtime_clear_exception on instances of any threads of this cluster
45
+ */
46
+ bool has_exception;
47
+ /* When processing is true, this cluster should refuse any spawn thread
48
+ * requests. This is a short-lived state, must be cleared immediately once
49
+ * the processing finished.
50
+ * This is used to avoid dead lock when one thread waiting another thread
51
+ * with lock, see wasm_cluster_wait_for_all and wasm_cluster_terminate_all
52
+ */
53
+ bool processing;
54
+ #if WASM_ENABLE_DEBUG_INTERP != 0
55
+ WASMDebugInstance *debug_inst;
56
+ #endif
57
+
58
+ #if WASM_ENABLE_DUMP_CALL_STACK != 0
59
+ /* When an exception occurs in a thread, the stack frames of that thread are
60
+ * saved into the cluster
61
+ */
62
+ Vector exception_frames;
63
+ #endif
64
+ };
65
+
66
+ void
67
+ wasm_cluster_set_max_thread_num(uint32 num);
68
+
69
+ bool
70
+ thread_manager_init(void);
71
+
72
+ void
73
+ thread_manager_destroy(void);
74
+
75
+ /* Create cluster */
76
+ WASMCluster *
77
+ wasm_cluster_create(WASMExecEnv *exec_env);
78
+
79
+ /* Destroy cluster */
80
+ void
81
+ wasm_cluster_destroy(WASMCluster *cluster);
82
+
83
+ /* Get the cluster of the current exec_env */
84
+ WASMCluster *
85
+ wasm_exec_env_get_cluster(WASMExecEnv *exec_env);
86
+
87
+ /* Forward registered functions to a new thread */
88
+ bool
89
+ wasm_cluster_dup_c_api_imports(WASMModuleInstanceCommon *module_inst_dst,
90
+ const WASMModuleInstanceCommon *module_inst_src);
91
+
92
+ int32
93
+ wasm_cluster_create_thread(WASMExecEnv *exec_env,
94
+ wasm_module_inst_t module_inst,
95
+ bool is_aux_stack_allocated, uint64 aux_stack_start,
96
+ uint32 aux_stack_size,
97
+ void *(*thread_routine)(void *), void *arg);
98
+
99
+ int32
100
+ wasm_cluster_join_thread(WASMExecEnv *exec_env, void **ret_val);
101
+
102
+ int32
103
+ wasm_cluster_detach_thread(WASMExecEnv *exec_env);
104
+
105
+ int32
106
+ wasm_cluster_cancel_thread(WASMExecEnv *exec_env);
107
+
108
+ void
109
+ wasm_cluster_exit_thread(WASMExecEnv *exec_env, void *retval);
110
+
111
+ bool
112
+ wasm_cluster_register_destroy_callback(void (*callback)(WASMCluster *));
113
+
114
+ void
115
+ wasm_cluster_cancel_all_callbacks(void);
116
+
117
+ void
118
+ wasm_cluster_suspend_all(WASMCluster *cluster);
119
+
120
+ void
121
+ wasm_cluster_suspend_all_except_self(WASMCluster *cluster,
122
+ WASMExecEnv *exec_env);
123
+
124
+ void
125
+ wasm_cluster_suspend_thread(WASMExecEnv *exec_env);
126
+
127
+ void
128
+ wasm_cluster_resume_thread(WASMExecEnv *exec_env);
129
+
130
+ void
131
+ wasm_cluster_resume_all(WASMCluster *cluster);
132
+
133
+ void
134
+ wasm_cluster_terminate_all(WASMCluster *cluster);
135
+
136
+ void
137
+ wasm_cluster_terminate_all_except_self(WASMCluster *cluster,
138
+ WASMExecEnv *exec_env);
139
+
140
+ void
141
+ wasm_cluster_wait_for_all(WASMCluster *cluster);
142
+
143
+ void
144
+ wasm_cluster_wait_for_all_except_self(WASMCluster *cluster,
145
+ WASMExecEnv *exec_env);
146
+
147
+ bool
148
+ wasm_cluster_del_exec_env(WASMCluster *cluster, WASMExecEnv *exec_env);
149
+
150
+ WASMExecEnv *
151
+ wasm_clusters_search_exec_env(WASMModuleInstanceCommon *module_inst);
152
+
153
+ void
154
+ wasm_cluster_set_exception(WASMExecEnv *exec_env, const char *exception);
155
+
156
+ WASMExecEnv *
157
+ wasm_cluster_spawn_exec_env(WASMExecEnv *exec_env);
158
+
159
+ void
160
+ wasm_cluster_destroy_spawned_exec_env(WASMExecEnv *exec_env);
161
+
162
+ void
163
+ wasm_cluster_spread_custom_data(WASMModuleInstanceCommon *module_inst,
164
+ void *custom_data);
165
+
166
+ void
167
+ wasm_cluster_set_context(WASMModuleInstanceCommon *module_inst, void *key,
168
+ void *ctx);
169
+
170
+ bool
171
+ wasm_cluster_is_thread_terminated(WASMExecEnv *exec_env);
172
+
173
+ #if WASM_ENABLE_SHARED_HEAP != 0
174
+ bool
175
+ wasm_cluster_attach_shared_heap(WASMModuleInstanceCommon *module_inst,
176
+ WASMSharedHeap *heap);
177
+
178
+ void
179
+ wasm_cluster_detach_shared_heap(WASMModuleInstanceCommon *module_inst);
180
+ #endif
181
+
182
+ #if WASM_ENABLE_DEBUG_INTERP != 0
183
+ #define WAMR_SIG_TRAP (5)
184
+ #define WAMR_SIG_STOP (19)
185
+ #define WAMR_SIG_TERM (15)
186
+ #define WAMR_SIG_SINGSTEP (0x1ff)
187
+
188
+ #define STATUS_RUNNING (0)
189
+ #define STATUS_STOP (1)
190
+ #define STATUS_EXIT (2)
191
+ #define STATUS_STEP (3)
192
+
193
+ #define IS_WAMR_TERM_SIG(signo) ((signo) == WAMR_SIG_TERM)
194
+
195
+ #define IS_WAMR_STOP_SIG(signo) \
196
+ ((signo) == WAMR_SIG_STOP || (signo) == WAMR_SIG_TRAP)
197
+
198
+ struct WASMCurrentEnvStatus {
199
+ uint32 signal_flag;
200
+ uint16 step_count;
201
+ uint16 running_status;
202
+ };
203
+
204
+ WASMCurrentEnvStatus *
205
+ wasm_cluster_create_exenv_status(void);
206
+
207
+ void
208
+ wasm_cluster_destroy_exenv_status(WASMCurrentEnvStatus *status);
209
+
210
+ void
211
+ wasm_cluster_send_signal_all(WASMCluster *cluster, uint32 signo);
212
+
213
+ /* This function must be called with exec_env->wait_lock locked, otherwise we
214
+ * may miss the signal from debugger thread, see
215
+ * https://github.com/bytecodealliance/wasm-micro-runtime/issues/1860 */
216
+ void
217
+ wasm_cluster_thread_waiting_run(WASMExecEnv *exec_env);
218
+
219
+ void
220
+ wasm_cluster_wait_thread_status(WASMExecEnv *exec_env, uint32 *status);
221
+
222
+ void
223
+ wasm_cluster_thread_exited(WASMExecEnv *exec_env);
224
+
225
+ void
226
+ wasm_cluster_thread_continue(WASMExecEnv *exec_env);
227
+
228
+ void
229
+ wasm_cluster_thread_send_signal(WASMExecEnv *exec_env, uint32 signo);
230
+
231
+ void
232
+ wasm_cluster_thread_step(WASMExecEnv *exec_env);
233
+
234
+ void
235
+ wasm_cluster_set_debug_inst(WASMCluster *cluster, WASMDebugInstance *inst);
236
+
237
+ #endif /* end of WASM_ENABLE_DEBUG_INTERP != 0 */
238
+
239
+ void
240
+ wasm_cluster_traverse_lock(WASMExecEnv *exec_env);
241
+
242
+ void
243
+ wasm_cluster_traverse_unlock(WASMExecEnv *exec_env);
244
+
245
+ bool
246
+ wasm_cluster_allocate_aux_stack(WASMExecEnv *exec_env, uint64 *p_start,
247
+ uint32 *p_size);
248
+
249
+ bool
250
+ wasm_cluster_free_aux_stack(WASMExecEnv *exec_env, uint64 start);
251
+
252
+ #ifdef __cplusplus
253
+ }
254
+ #endif
255
+
256
+ #endif /* end of _THREAD_MANAGER_H */