[MPlayer-dev-eng] [PATCH] Implement Win32 mutexes

Steinar H. Gunderson sgunderson at bigfoot.com
Thu Mar 4 17:36:35 CET 2010


Implement Win32 mutexes; they used to just be mapped on top of events, which
is not the same thing at all.

The implementation is pretty much the obvious one, similar to the
current critical section implementation and the semaphore implementation;
a single lock count protected by a pthread mutex, and an event lockers can
sleep on to know when the mutex is available.

Also make CreateMutexA and ReleaseMutex available even if QuickTime codecs
support is not configured.

/* Steinar */
-- 
Homepage: http://www.sesse.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-win32-mutexes.diff
Type: text/x-diff
Size: 4920 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100304/5ccf3a78/attachment.diff>


More information about the MPlayer-dev-eng mailing list