QT_WASM_PTHREAD_POOL_SIZE
Dimensione interna del pool di thread WebAssembly.
Questa proprietà è stata introdotta in Qt 6.2.4.
Nota: questa proprietà è in fase di anteprima tecnologica e potrebbe subire modifiche nelle versioni future.
Nota: questa proprietà viene utilizzata solo se si punta alla piattaforma WebAssembly.
Specifica il numero di web worker (thread) da creare all'avvio dell'applicazione. Per impostazione predefinita, Qt alloca un pool di 4 elementi. Ciò significa che l'app può utilizzare 4 thread aggiuntivi oltre al thread principale, senza l'overhead aggiuntivo derivante dalla creazione di un nuovo web worker, che potrebbe causare un deadlock se il thread principale lo creasse ed eseguisse join() sul thread senza restituire prima il controllo al ciclo degli eventi. Si traduce nell'impostazione PTHREAD_POOL_SIZE del compilatore Emscripten.
Per ulteriori informazioni, consultare il supporto per i Pthread.
© 2026 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.