Lines Matching refs:s32DMSMutexID
212 static MS_S32 s32DMSMutexID[DMS_MAX_WINDOW_NUM] = {-1, -1}; variable
217 if (s32DMSMutexID[WinID] < 0) \
220 … s32DMSMutexID[WinID] = MsOS_CreateMutex(E_MSOS_FIFO, "DMS_Drv_0", MSOS_PROCESS_SHARED); \
222 … s32DMSMutexID[WinID] = MsOS_CreateMutex(E_MSOS_FIFO, "DMS_Drv_1", MSOS_PROCESS_SHARED); \
230 if (s32DMSMutexID[WinID] >= 0) \
232 MsOS_DeleteMutex(s32DMSMutexID[WinID]); \
233 s32DMSMutexID[WinID] = -1; \
240 if (s32DMSMutexID[WinID] >= 0) \
242 if (!MsOS_ObtainMutex(s32DMSMutexID[WinID], MSOS_WAIT_FOREVER)) \
252 if (s32DMSMutexID[WinID] >= 0) \
254 MsOS_ReleaseMutex(s32DMSMutexID[WinID]); \
262 if (s32DMSMutexID[WinID] >= 0) \
264 MsOS_ReleaseMutex(s32DMSMutexID[WinID]); \