Debian Codegraph @

src/util/mutex.h

raw
1 /*
2 * This file is part of libbluray
3 * Copyright (C) 2010 hpi1
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see
17 * <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef LIBBLURAY_MUTEX_H_
21 #define LIBBLURAY_MUTEX_H_
22
23 #include "attributes.h"
24
25 /*
26 * recursive mutex
27 */
28
29 typedef struct bd_mutex_s BD_MUTEX;
30 struct bd_mutex_s {
31 void *impl;
32 };
33
34 BD_PRIVATE int bd_mutex_init(BD_MUTEX *p);
35 BD_PRIVATE int bd_mutex_destroy(BD_MUTEX *p);
36
37 BD_PRIVATE int bd_mutex_lock(BD_MUTEX *p);
38 BD_PRIVATE int bd_mutex_unlock(BD_MUTEX *p);
39
40 #endif // LIBBLURAY_MUTEX_H_