connection: Make wl_closure_print output atomic
authorAlexander Irion <alexander_irion@mentor.com>
Mon, 7 Mar 2022 14:49:49 +0000 (15:49 +0100)
committerAlexander Irion <alexander_irion@mentor.com>
Tue, 8 Mar 2022 13:48:53 +0000 (14:48 +0100)
commitca4678354c4a7c21bfd184e604ad7a3c8224e10c
tree8fbfdc37511afb6c99fb6928da32631f99cc9bba
parentaf8b5c07826ed2f2624cf87c0e2da4f8e9089ee0
connection: Make wl_closure_print output atomic

When multiple threads are used, output from different threads was intermixed in one line. That what breaking parsing of the log messages. Now, intermixing is prevented by using a memstream.

Signed-off-by: Alexander Irion <alexander_irion@mentor.com>
src/connection.c