khronosfws/openmax_al/src/engine/xathreadsyncitf.h
changeset 12 5a06f39ad45b
child 25 6f7ceef7b1d1
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef XATHREADSYNCITF_H
       
    19 #define XATHREADSYNCITF_H
       
    20 
       
    21 #include "openmaxalwrapper.h"
       
    22 #include "xaglobals.h"
       
    23 #include "xaplatform.h"
       
    24 
       
    25 /** TYPES **/
       
    26 
       
    27 /** ENUMERATIONS **/
       
    28 
       
    29 /** STRUCTURES **/
       
    30 /* Definition of XA%ExampleItf% implementation */
       
    31 typedef struct XAThreadSyncItfImpl_
       
    32 {
       
    33     /* parent interface */
       
    34     struct XAThreadSyncItf_ itf;
       
    35     /* pointer to self */
       
    36     struct XAThreadSyncItfImpl_* self;
       
    37 
       
    38     /* variables */
       
    39     XAImplMutexHandle engCriticalSection;
       
    40     XAboolean engInCritical;
       
    41 } XAThreadSyncItfImpl;
       
    42 
       
    43 /** METHODS **/
       
    44 
       
    45 /* Base interface XAThreadSyncItf implementation */
       
    46 XAresult XAThreadSyncItfImpl_EnterCriticalSection(XAThreadSyncItf self);
       
    47 XAresult XAThreadSyncItfImpl_ExitCriticalSection(XAThreadSyncItf self);
       
    48 
       
    49 /* XAThreadSyncItfImpl -specific methods */
       
    50 XAThreadSyncItfImpl* XAThreadSyncItfImpl_Create(void);
       
    51 void XAThreadSyncItfImpl_Free(XAThreadSyncItfImpl* self);
       
    52 
       
    53 #endif /* XATHREADSYNCITF_H */