Xenomai 3.3.2
Loading...
Searching...
No Matches
cond.h
1/*
2 * Written by Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17 */
18#ifndef _COBALT_UAPI_COND_H
19#define _COBALT_UAPI_COND_H
20
21#include <cobalt/uapi/mutex.h>
22
23#define COBALT_COND_MAGIC 0x86860505
24
25struct cobalt_cond_state {
26 __u32 pending_signals;
27 __u32 mutex_state_offset;
28};
29
30union cobalt_cond_union {
31 pthread_cond_t native_cond;
32 struct cobalt_cond_shadow {
33 __u32 magic;
34 __u32 state_offset;
35 xnhandle_t handle;
36 } shadow_cond;
37};
38
39#endif /* !_COBALT_UAPI_COND_H */