mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-21 06:22:21 +02:00
fix recursive mutex
This commit is contained in:
@ -68,9 +68,9 @@ struct Lock {
|
||||
throw_if_false(lock != nullptr, "create signal event group failed");
|
||||
}
|
||||
~Lock() { vSemaphoreDelete(lock); }
|
||||
void take() { xSemaphoreTake(lock, portMAX_DELAY); }
|
||||
void take() { xSemaphoreTakeRecursive(lock, portMAX_DELAY); }
|
||||
|
||||
void give() { xSemaphoreGive(lock); }
|
||||
void give() { xSemaphoreGiveRecursive(lock); }
|
||||
xSemaphoreHandle lock;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user