Lines Matching refs:_s32VdecMutexId
475 static MS_S32 _s32VdecMutexId = -1; variable
925 if(_s32VdecMutexId < 0) in _VDEC_SYS_Init()
927 _s32VdecMutexId = MsOS_CreateMutex(E_MSOS_FIFO, (char*)_u8VdecMutex, MSOS_PROCESS_SHARED); in _VDEC_SYS_Init()
929 if(_s32VdecMutexId < 0) in _VDEC_SYS_Init()
943 MsOS_DeleteMutex(_s32VdecMutexId); in _VDEC_SYS_Init()
963 MsOS_DeleteMutex(_s32VdecMutexId); in _VDEC_SYS_Init()
971 if(_s32VdecMutexId < 0) in _VDEC_MutexInit()
973 _s32VdecMutexId = MsOS_CreateMutex(E_MSOS_FIFO, (char*)_u8VdecMutex, MSOS_PROCESS_SHARED); in _VDEC_MutexInit()
975 return (_s32VdecMutexId != -1); in _VDEC_MutexInit()
981 if(_s32VdecMutexId != -1) in _VDEC_MutexExit()
983 MsOS_DeleteMutex(_s32VdecMutexId); in _VDEC_MutexExit()
984 _s32VdecMutexId = -1; in _VDEC_MutexExit()
995 if(_s32VdecMutexId != -1)
997 MsOS_DeleteMutex(_s32VdecMutexId);
998 _s32VdecMutexId = -1;
1019 if (_s32VdecMutexId != -1) in _VDEC_MutexLock()
1021 return MsOS_ObtainMutex(_s32VdecMutexId, MSOS_WAIT_FOREVER); in _VDEC_MutexLock()
1031 if (_s32VdecMutexId != -1) in _VDEC_MutexUnlock()
1033 return MsOS_ReleaseMutex(_s32VdecMutexId); in _VDEC_MutexUnlock()