summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_application_objc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-20 21:07:10 +0100
committerwm4 <wm4@nowhere>2013-12-20 21:07:58 +0100
commite9e68fc399ed2805b43dff8f355142804e55c38c (patch)
tree5a4b3f08fe9c189eb51e0dab3ece4835ecd93b9e /osdep/macosx_application_objc.h
parent6a8fc3f5e38f93c36d18ad8407d4f3f345d893db (diff)
downloadmpv-e9e68fc399ed2805b43dff8f355142804e55c38c.tar.bz2
mpv-e9e68fc399ed2805b43dff8f355142804e55c38c.tar.xz
msg: use a global lock to synchronize printing
We have certain race conditions coming from doing multiple fprintf() calls (setting up colors etc.). I'm not sure whether it would be worth changing to code such that we do only one fprintf() call (and assume this synchronizes access), but considering it would be hard to do (Windows compatibility, ...), and that stdio uses per FILE locks anyway, this is simpler and probably not less efficient. Also, there's no problem handling the weird statusline special case this way. Note that mp_msg_* calls which are silent won't acquire the lock, and acquiring the lock happens on actual output only (which is slow and serialized anyway).
Diffstat (limited to 'osdep/macosx_application_objc.h')
0 files changed, 0 insertions, 0 deletions