os/log.c thread safety

Jeremy Huddleston Sequoia jeremyhu at apple.com
Mon Sep 19 04:26:21 UTC 2016


I noticed a data race in XQuartz.  We call ErrorF in a couple places off of the main server thread.  I could fix it by simply moving this logging onto the server thread (or not doing it with os/log), but with the split of InputThread off of MainThread, I'm wondering if it would be better to instead make ErrorF thread safe.

Thoughts?

--Jeremy


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4465 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160918/a10c9aba/attachment.bin>


More information about the xorg-devel mailing list