[MPlayer-dev-eng] [PATCH] Make Win32 mutex linked list thread safe

Steinar H. Gunderson sgunderson at bigfoot.com
Sat Mar 6 11:05:20 CET 2010


On Thu, Mar 04, 2010 at 05:11:17PM +0100, Steinar H. Gunderson wrote:
> loader/win32.c contains a global linked list of all existing mutexes,
> whose head is called mlist. mlist is stored in a global variable and
> accessed from multiple threads, and as such needs to be protected by
> a mutex. Fixed.

Committed to Subversion, with some changes; I found another race condition
which I fixed, and the global list of threads (simply called "list") needs
protection as well.

/* Steinar */
-- 
Homepage: http://www.sesse.net/



More information about the MPlayer-dev-eng mailing list