59 handle = xSemaphoreCreateMutex();
62 #ifndef CPP_FREERTOS_NO_EXCEPTIONS 65 configASSERT(!
"Mutex Constructor Failed");
73 BaseType_t success = xSemaphoreTake(
handle, Timeout);
74 return success == pdTRUE ? true :
false;
80 BaseType_t success = xSemaphoreGive(
handle);
81 return success == pdTRUE ? true :
false;
85 #if (configUSE_RECURSIVE_MUTEXES == 1) 89 handle = xSemaphoreCreateRecursiveMutex();
92 #ifndef CPP_FREERTOS_NO_EXCEPTIONS 95 configASSERT(!
"Mutex Constructor Failed");
103 BaseType_t success = xSemaphoreTakeRecursive(
handle, Timeout);
104 return success == pdTRUE ? true :
false;
110 BaseType_t success = xSemaphoreGiveRecursive(
handle);
111 return success == pdTRUE ? true :
false;
virtual bool Lock(TickType_t Timeout=portMAX_DELAY)
virtual bool Lock(TickType_t Timeout=portMAX_DELAY)=0
virtual bool Lock(TickType_t Timeout=portMAX_DELAY)