khronosfws/openmax_al/src/engine/xathreadsyncitf.c
changeset 33 5e8b14bae8c3
parent 25 6f7ceef7b1d1
child 43 9894ed580e4a
equal deleted inserted replaced
28:ebf79c79991a 33:5e8b14bae8c3
    51         ret = XAImpl_LockMutex(impl->engCriticalSection);
    51         ret = XAImpl_LockMutex(impl->engCriticalSection);
    52         if (ret == XA_RESULT_SUCCESS)
    52         if (ret == XA_RESULT_SUCCESS)
    53             {
    53             {
    54             impl->engInCritical = XA_BOOLEAN_TRUE;
    54             impl->engInCritical = XA_BOOLEAN_TRUE;
    55             }
    55             }
    56         }DEBUG_API("<-XAThreadSyncItfImpl_EnterCriticalSection");
    56         }
       
    57     DEBUG_API("<-XAThreadSyncItfImpl_EnterCriticalSection");
    57     return ret;
    58     return ret;
    58     }
    59     }
    59 
    60 
    60 XAresult XAThreadSyncItfImpl_ExitCriticalSection(XAThreadSyncItf self)
    61 XAresult XAThreadSyncItfImpl_ExitCriticalSection(XAThreadSyncItf self)
    61     {
    62     {
    83     else
    84     else
    84         {
    85         {
    85         /* The engine must be in critical section state */
    86         /* The engine must be in critical section state */
    86         DEBUG_ERR("XA_RESULT_PRECONDITIONS_VIOLATED");
    87         DEBUG_ERR("XA_RESULT_PRECONDITIONS_VIOLATED");
    87         ret = XA_RESULT_PRECONDITIONS_VIOLATED;
    88         ret = XA_RESULT_PRECONDITIONS_VIOLATED;
    88         }DEBUG_API("<-XAThreadSyncItfImpl_ExitCriticalSection");
    89         }
       
    90     DEBUG_API("<-XAThreadSyncItfImpl_ExitCriticalSection");
    89     return ret;
    91     return ret;
    90     }
    92     }
    91 
    93 
    92 /**
    94 /**
    93  * XAThreadSyncItfImpl -specific methods
    95  * XAThreadSyncItfImpl -specific methods