lc-soft/LCUI


The issue has been closed
[WebAssembly] the test program will block on the main thread #207
lc-soft posted onGitHub
Describe the bug I tried to compile the source code of LCUI into WebAssembly, but when running the test program, I found that it would block on the main thread
To Reproduce Steps to reproduce the behavior:
emconfigure ./configure --enable-video-output=no --with-openmp=no --disable-shared
make
cd test
emcc -s WASM=1 -s USE_PTHREADS=1 -I../include -Wall -D _GNU_SOURCE -pthread -O2 -o test.html test.o libtest.o test_mainloop.o test_charset.o test_string.o test_strpool.o test_linkedlist.o test_object.o test_thread.o test_font_load.o test_css_parser.o test_xml_parser.o test_image_reader.o test_block_layout.o test_flex_layout.o test_widget_rect.o test_widget_opacity.o test_widget_event.o test_textview_resize.o test_textedit.o ../src/.libs/libLCUI.a -lm -pthread
Expected behavior Not blocking.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- LCUI version: develop branch
- Build tools: emscripten
- OS and version: Ubuntu 18.04.3 LTS
Additional context