khronosfws/openmax_al/src/engine/xathreadsyncitf.c
changeset 53 eabc8c503852
parent 43 9894ed580e4a
equal deleted inserted replaced
48:a493a607b5bf 53:eabc8c503852
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #include <stdio.h>
    18 #include <stdio.h>
    19 #include <stdlib.h>
    19 #include <stdlib.h>
    20 #include <assert.h>
       
    21 
       
    22 #include "xathreadsyncitf.h"
    20 #include "xathreadsyncitf.h"
    23 
    21 
    24 /**
    22 /**
    25  * Base interface XAThreadSyncItf Implementation
    23  * Base interface XAThreadSyncItf Implementation
    26  */
    24  */
   128 void XAThreadSyncItfImpl_Free(XAThreadSyncItfImpl* self)
   126 void XAThreadSyncItfImpl_Free(XAThreadSyncItfImpl* self)
   129     {
   127     {
   130     DEBUG_API("->XAThreadSyncItfImpl_Free");
   128     DEBUG_API("->XAThreadSyncItfImpl_Free");
   131     if(self)
   129     if(self)
   132         {
   130         {
   133         assert(self==self->self);
       
   134         XAImpl_DeleteMutex(self->engCriticalSection);
   131         XAImpl_DeleteMutex(self->engCriticalSection);
   135         free(self);
   132         free(self);
   136         }
   133         }
   137     DEBUG_API("<-XAThreadSyncItfImpl_Free");
   134     DEBUG_API("<-XAThreadSyncItfImpl_Free");
   138     }
   135     }