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

Steinar H. Gunderson sgunderson at bigfoot.com
Sat Mar 6 11:13:57 CET 2010


On Thu, Mar 04, 2010 at 05:36:35PM +0100, Steinar H. Gunderson wrote:
> 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.

Committed to Subversion (with support for mlist_lock added).

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



More information about the MPlayer-dev-eng mailing list