Lines Matching refs:Mutex

47 static HANDLE Mutex[FF_VOLUMES + 1];	/* Table of mutex handle */  variable
52 static mtxid Mutex[FF_VOLUMES + 1]; /* Table of mutex ID */ variable
56 static OS_EVENT *Mutex[FF_VOLUMES + 1]; /* Table of mutex pinter */ variable
61 static SemaphoreHandle_t Mutex[FF_VOLUMES + 1]; /* Table of mutex handle */ variable
65 static osMutexId Mutex[FF_VOLUMES + 1]; /* Table of mutex ID */ variable
84 Mutex[vol] = CreateMutex(NULL, FALSE, NULL); in ff_mutex_create()
85 return (int)(Mutex[vol] != INVALID_HANDLE_VALUE); in ff_mutex_create()
90 Mutex[vol] = acre_mtx(&cmtx); in ff_mutex_create()
91 return (int)(Mutex[vol] > 0); in ff_mutex_create()
96 Mutex[vol] = OSMutexCreate(0, &err); in ff_mutex_create()
100 Mutex[vol] = xSemaphoreCreateMutex(); in ff_mutex_create()
101 return (int)(Mutex[vol] != NULL); in ff_mutex_create()
106 Mutex[vol] = osMutexCreate(osMutex(cmsis_os_mutex)); in ff_mutex_create()
107 return (int)(Mutex[vol] != NULL); in ff_mutex_create()
125 CloseHandle(Mutex[vol]); in ff_mutex_delete()
128 del_mtx(Mutex[vol]); in ff_mutex_delete()
133 OSMutexDel(Mutex[vol], OS_DEL_ALWAYS, &err); in ff_mutex_delete()
136 vSemaphoreDelete(Mutex[vol]); in ff_mutex_delete()
139 osMutexDelete(Mutex[vol]); in ff_mutex_delete()
157 return (int)(WaitForSingleObject(Mutex[vol], FF_FS_TIMEOUT) == WAIT_OBJECT_0); in ff_mutex_take()
160 return (int)(tloc_mtx(Mutex[vol], FF_FS_TIMEOUT) == E_OK); in ff_mutex_take()
165 OSMutexPend(Mutex[vol], FF_FS_TIMEOUT, &err)); in ff_mutex_take()
169 return (int)(xSemaphoreTake(Mutex[vol], FF_FS_TIMEOUT) == pdTRUE); in ff_mutex_take()
172 return (int)(osMutexWait(Mutex[vol], FF_FS_TIMEOUT) == osOK); in ff_mutex_take()
190 ReleaseMutex(Mutex[vol]); in ff_mutex_give()
193 unl_mtx(Mutex[vol]); in ff_mutex_give()
196 OSMutexPost(Mutex[vol]); in ff_mutex_give()
199 xSemaphoreGive(Mutex[vol]); in ff_mutex_give()
202 osMutexRelease(Mutex[vol]); in ff_mutex_give()