annotate mp_msg-mencoder.c @ 30811:50e0f6942e43

Implement Win32 mutexes. 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.
author sesse
date Sat, 06 Mar 2010 10:13:37 +0000
parents 4fe62701bf9c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30434
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
1 /*
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
2 * This file is part of MPlayer.
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
3 *
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
5 * it under the terms of the GNU General Public License as published by
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
7 * (at your option) any later version.
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
8 *
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
12 * GNU General Public License for more details.
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
13 *
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
14 * You should have received a copy of the GNU General Public License along
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
92b0eee57acb Add missing license header.
diego
parents: 5957
diff changeset
17 */
5957
94813c4807f3 gui vs. mencoder conflict workaround
arpi
parents:
diff changeset
18
30435
4fe62701bf9c Explain the need for a MEncoder version of the logging facilities.
diego
parents: 30434
diff changeset
19 /* Build an exact copy of the logging facilities without GUI dependencies. */
4fe62701bf9c Explain the need for a MEncoder version of the logging facilities.
diego
parents: 30434
diff changeset
20
5957
94813c4807f3 gui vs. mencoder conflict workaround
arpi
parents:
diff changeset
21 #define FOR_MENCODER 1
94813c4807f3 gui vs. mencoder conflict workaround
arpi
parents:
diff changeset
22 #include "mp_msg.c"