Threading primitives separated.
[strongswan.git] / src / libstrongswan / threading / condvar.h
1 /*
2 * Copyright (C) 2008 Tobias Brunner
3 * Copyright (C) 2008 Martin Willi
4 * Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17 #ifndef THREADING_CONDVAR_H_
18 #define THREADING_CONDVAR_H_
19
20 typedef struct private_condvar_t private_condvar_t;
21
22 /**
23 * private data of condvar
24 */
25 struct private_condvar_t {
26
27 /**
28 * public functions
29 */
30 condvar_t public;
31
32 /**
33 * wrapped pthread condvar
34 */
35 pthread_cond_t condvar;
36 };
37
38 #endif /* THREADING_CONDVAR_H_ */
39