qt_wasm_pthread_pool_size
WebAssembly 内部线程池大小。
此属性在 Qt 6.2.4 中引入。
注意: 此属性为技术预览版,在未来版本中可能会更改。
注: 此属性仅在针对 WebAssembly 平台时使用。
指定应用程序启动时创建的 Web Worker(线程)数量。Qt 默认分配 4 个线程池。这意味着除主线程外,应用程序还可以使用 4 个额外的线程,而无需创建新的 Web Worker(如果主线程创建了新的 Web Worker,并在未将控制权返回事件循环的情况下加入()该线程,则可能会造成死锁)。转化为 Emscripten 编译器设置的 PTHREAD_POOL_SIZE。
更多信息,请参阅Pthreads 支持。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.