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 545d9bf commit baa316d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cpu/esp_common/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void IRAM_ATTR _lock_acquire(_lock_t *lock)
return;
}

/* the locking variable has to be intialized, either as static variable or
/* the locking variable has to be initialized, either as static variable or
* by a previous call of _lock_init */
assert(lock != NULL && *lock != 0);
assert(!irq_is_in());
Expand Down Expand Up @@ -203,7 +203,7 @@ void IRAM_ATTR _lock_acquire_recursive(_lock_t *lock)
return;
}

/* the locking variable has to be intialized, either as static variable or
/* the locking variable has to be initialized, either as static variable or
* by a previous call of _lock_init */
assert(lock != NULL && *lock != 0);
assert(!irq_is_in());
Expand All @@ -222,7 +222,7 @@ int IRAM_ATTR _lock_try_acquire(_lock_t *lock)
return 0;
}

/* the locking variable has to be intialized, either as static variable or
/* the locking variable has to be initialized, either as static variable or
* by a previous call of _lock_init */
assert(lock != NULL && *lock != 0);

Expand All @@ -240,7 +240,7 @@ int IRAM_ATTR _lock_try_acquire_recursive(_lock_t *lock)
return 0;
}

/* the locking variable has to be intialized, either as static variable or
/* the locking variable has to be initialized, either as static variable or
* by a previous call of _lock_init */
assert(lock != NULL && *lock != 0);

Expand All @@ -264,7 +264,7 @@ void IRAM_ATTR _lock_release(_lock_t *lock)
return;
}

/* the locking variable has to be intialized, either as static variable or
/* the locking variable has to be initialized, either as static variable or
* by a previous call of _lock_init */
assert(lock != NULL && *lock != 0);

Expand All @@ -278,7 +278,7 @@ void IRAM_ATTR _lock_release_recursive(_lock_t *lock)
return;
}

/* the locking variable has to be intialized, either as static variable or
/* the locking variable has to be initialized, either as static variable or
* by a previous call of _lock_init */
assert(lock != NULL && *lock != 0);

Expand Down

0 comments on commit baa316d

Please sign in to comment.