Skip to content

Commit

Permalink
fixup! fixup! cpu/esp_common: improve thread safety for locking funct…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
gschorcht committed Sep 1, 2022
1 parent 670cfea commit 545d9bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/esp_common/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void IRAM_ATTR _lock_init_recursive(_lock_t *lock)

void IRAM_ATTR _lock_close(_lock_t *lock)
{
/* locking variable has to be intialized by a previous call of _lock_init */
/* locking variable has to be initialized by a previous call of _lock_init */
assert(lock != NULL && *lock != 0);
#ifdef MCU_ESP8266
assert(lock != __malloc_static_object);
Expand All @@ -150,7 +150,7 @@ void IRAM_ATTR _lock_close(_lock_t *lock)

void IRAM_ATTR _lock_close_recursive(_lock_t *lock)
{
/* locking variable has to be intialized by a previous call of _lock_init */
/* locking variable has to be initialized by a previous call of _lock_init */
assert(lock != NULL && *lock != 0);
#ifdef MCU_ESP8266
assert(lock != __malloc_static_object);
Expand Down

0 comments on commit 545d9bf

Please sign in to comment.