Skip to content

[browser][MT] emscripten_check_mailbox per console character #93603

@pavelsavara

Description

@pavelsavara

Console.WriteLine on non-UI thread would lead to cross thread message per character.

put_char (dotnet.native.js:1268)
write (dotnet.native.js:1216)
write (dotnet.native.js:2689)
doWritev (dotnet.native.js:5939)
_fd_write (dotnet.native.js:6012)
_emscripten_receive_on_main_thread_js (dotnet.native.js:5746)
_do_call (library_pthread.c:193)
em_task_queue_execute (em_task_queue.c:176)
receive_notification (em_task_queue.c:218)
em_task_queue_execute (em_task_queue.c:176)
_emscripten_check_mailbox (thread_mailbox.c:87)
(anonymous) (dotnet.native.js:744)
(anonymous) (dotnet.native.js:5475)
callUserCallback (dotnet.native.js:5452)
checkMailbox (dotnet.native.js:5475)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions