[MPlayer-dev-eng] [PATCH] Make QuickTime wrapper function thread-safe

Steinar H. Gunderson sgunderson at bigfoot.com
Tue Mar 16 21:52:56 CET 2010


Make wrapper.S thread-safe by storing the replaced return value in the
an unused entry in the TLS block. Otherwise, different threads could get each
other's return addresses, which is obviously very wrong.

/* Steinar */
-- 
Homepage: http://www.sesse.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt-wrapper-use-tls.diff
Type: text/x-diff
Size: 1475 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100316/c28d73ee/attachment.diff>


More information about the MPlayer-dev-eng mailing list