mirror of
https://github.com/google/pebble.git
synced 2025-04-30 15:21:41 -04:00
spelling: before
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
4c1819019d
commit
5a7fdca2e4
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ void dls_assert_own_list_mutex(void) {
|
|||
// * session->data->open_count can only be read/modified while holding the list mutex
|
||||
// and is only available if session->status == DataLoggingStatusActive
|
||||
// * In order to avoid deadlocks,
|
||||
// - s_list_mutex MUST be released befored trying to grab session->data->mutex.
|
||||
// - s_list_mutex MUST be released before trying to grab session->data->mutex.
|
||||
// - session->data->open_count must incremented to be > 0 under s_list_mutex before you can
|
||||
// grab session->data-mutex
|
||||
// - if you already own session->data-mutex, it is OK to grab s_list_mutex
|
||||
|
|
|
@ -53,7 +53,7 @@ bool circular_buffer_write(CircularBuffer* buffer, const void* data, uint16_t le
|
|||
|
||||
uint16_t write_index = get_write_index(buffer);
|
||||
|
||||
// Update the data_length member now beforce we muck with the length parameter
|
||||
// Update the data_length member now before we muck with the length parameter
|
||||
buffer->data_length += length;
|
||||
|
||||
const uint16_t remaining_length = buffer->buffer_size - write_index;
|
||||
|
|
Loading…
Add table
Reference in a new issue