Lines Matching refs:pxMutex

42 static void prvMutexInit(lv_mutex_t * pxMutex);
44 static void prvCheckMutexInit(lv_mutex_t * pxMutex);
117 lv_result_t lv_mutex_init(lv_mutex_t * pxMutex) in lv_mutex_init() argument
120 prvCheckMutexInit(pxMutex); in lv_mutex_init()
125 lv_result_t lv_mutex_lock(lv_mutex_t * pxMutex) in lv_mutex_lock() argument
128 prvCheckMutexInit(pxMutex); in lv_mutex_lock()
130 BaseType_t xMutexTakeStatus = xSemaphoreTakeRecursive(pxMutex->xMutex, portMAX_DELAY); in lv_mutex_lock()
139 lv_result_t lv_mutex_lock_isr(lv_mutex_t * pxMutex) in lv_mutex_lock_isr() argument
142 prvCheckMutexInit(pxMutex); in lv_mutex_lock_isr()
146 BaseType_t xMutexTakeStatus = xSemaphoreTakeFromISR(pxMutex->xMutex, &xHigherPriorityTaskWoken); in lv_mutex_lock_isr()
161 lv_result_t lv_mutex_unlock(lv_mutex_t * pxMutex) in lv_mutex_unlock() argument
164 prvCheckMutexInit(pxMutex); in lv_mutex_unlock()
166 BaseType_t xMutexGiveStatus = xSemaphoreGiveRecursive(pxMutex->xMutex); in lv_mutex_unlock()
175 lv_result_t lv_mutex_delete(lv_mutex_t * pxMutex) in lv_mutex_delete() argument
177 if(pxMutex->xIsInitialized == pdFALSE) in lv_mutex_delete()
179 vSemaphoreDelete(pxMutex->xMutex); in lv_mutex_delete()
180 pxMutex->xIsInitialized = pdFALSE; in lv_mutex_delete()
436 static void prvMutexInit(lv_mutex_t * pxMutex) in prvMutexInit() argument
438 pxMutex->xMutex = xSemaphoreCreateRecursiveMutex(); in prvMutexInit()
441 if(pxMutex->xMutex == NULL) { in prvMutexInit()
447 pxMutex->xIsInitialized = pdTRUE; in prvMutexInit()
450 static void prvCheckMutexInit(lv_mutex_t * pxMutex) in prvCheckMutexInit() argument
453 if(pxMutex->xIsInitialized == pdFALSE) { in prvCheckMutexInit()
461 if(pxMutex->xIsInitialized == pdFALSE) { in prvCheckMutexInit()
462 prvMutexInit(pxMutex); in prvCheckMutexInit()