os/log.c thread safety
Keith Packard
keithp at keithp.com
Mon Sep 19 15:20:56 UTC 2016
Jeremy Huddleston Sequoia <jeremyhu at apple.com> writes:
> FWIW, the issues surround these globals:
> bufferUnused
> bufferPos
> LogSWrite.newline
How about creating a separate mutex for these? It looks like we can do
some minor reordering of code so that the mutex wouldn't need to be held
across system calls. That should make it "safe enough".
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160919/932fed3b/attachment.sig>
More information about the xorg-devel
mailing list