equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: ThreadSync Itf Header |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef XATHREADSYNCITF_H |
18 #ifndef XATHREADSYNCITF_H |
19 #define XATHREADSYNCITF_H |
19 #define XATHREADSYNCITF_H |
20 |
20 |
21 #include "openmaxalwrapper.h" |
21 #include "openmaxalwrapper.h" |
27 /** ENUMERATIONS **/ |
27 /** ENUMERATIONS **/ |
28 |
28 |
29 /** STRUCTURES **/ |
29 /** STRUCTURES **/ |
30 /* Definition of XA%ExampleItf% implementation */ |
30 /* Definition of XA%ExampleItf% implementation */ |
31 typedef struct XAThreadSyncItfImpl_ |
31 typedef struct XAThreadSyncItfImpl_ |
32 { |
32 { |
33 /* parent interface */ |
33 /* parent interface */ |
34 struct XAThreadSyncItf_ itf; |
34 struct XAThreadSyncItf_ itf; |
35 /* pointer to self */ |
35 /* pointer to self */ |
36 struct XAThreadSyncItfImpl_* self; |
36 struct XAThreadSyncItfImpl_* self; |
37 |
37 |
38 /* variables */ |
38 /* variables */ |
39 XAImplMutexHandle engCriticalSection; |
39 XAImplMutexHandle engCriticalSection; |
40 XAboolean engInCritical; |
40 XAboolean engInCritical; |
41 } XAThreadSyncItfImpl; |
41 } XAThreadSyncItfImpl; |
42 |
42 |
43 /** METHODS **/ |
43 /** METHODS **/ |
44 |
44 |
45 /* Base interface XAThreadSyncItf implementation */ |
45 /* Base interface XAThreadSyncItf implementation */ |
46 XAresult XAThreadSyncItfImpl_EnterCriticalSection(XAThreadSyncItf self); |
46 XAresult XAThreadSyncItfImpl_EnterCriticalSection(XAThreadSyncItf self); |