Mercurial > mplayer.hg
annotate stream/pnm.h @ 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 | 0f1b5b68af32 |
children |
rev | line source |
---|---|
8570 | 1 /* |
2 * Copyright (C) 2002 the xine project | |
3 * | |
4 * This file is part of xine, a free video player. | |
5 * | |
6 * xine is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 2 of the License, or | |
9 * (at your option) any later version. | |
10 * | |
11 * xine is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
19614 | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
8570 | 19 * |
20 * $Id$ | |
21 * | |
22 * pnm util functions header by joschka | |
23 */ | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26029
diff
changeset
|
24 |
26029 | 25 #ifndef MPLAYER_PNM_H |
26 #define MPLAYER_PNM_H | |
8570 | 27 |
28 #include <inttypes.h> | |
29 /*#include "xine_internal.h" */ | |
30 | |
31 typedef struct pnm_s pnm_t; | |
32 | |
15585 | 33 //pnm_t* pnm_connect (int fd,char *url); |
8570 | 34 |
15585 | 35 //int pnm_read (pnm_t *this, char *data, int len); |
8570 | 36 |
26029 | 37 #endif /* MPLAYER_PNM_H */ |