Skip to content

Make ring buffer thread-safe (#1213) - #1

Merged
LouisChen1905 merged 1 commit into
eloquentfrom
louis/fix-ring-race-in-ring-buffer
Dec 16, 2021
Merged

LouisChen1905 merged 1 commit into
eloquentfrom
louis/fix-ring-race-in-ring-buffer

Conversation

@LouisChen1905

Copy link
Copy Markdown
Owner
  • Add recursive mutexs to ring buffer to avoid race conditions

Signed-off-by: Audrow [email protected]

  • Replace recursive_mutex with shared_timed_mutex

Signed-off-by: Audrow [email protected]

  • Replace shared_timed_mutex with regular mutex

Signed-off-by: Audrow [email protected]

  • Document the ring buffer

Signed-off-by: Audrow [email protected]

  • Remove trailing whitespace

Signed-off-by: Audrow [email protected]

  • Fix typo in has_data() document string

Signed-off-by: Audrow [email protected]

* Add recursive mutexs to ring buffer to avoid race conditions

Signed-off-by: Audrow <[email protected]>

* Replace recursive_mutex with shared_timed_mutex

Signed-off-by: Audrow <[email protected]>

* Replace shared_timed_mutex with regular mutex

Signed-off-by: Audrow <[email protected]>

* Document the ring buffer

Signed-off-by: Audrow <[email protected]>

* Remove trailing whitespace

Signed-off-by: Audrow <[email protected]>

* Fix typo in has_data() document string

Signed-off-by: Audrow <[email protected]>
@LouisChen1905
LouisChen1905 merged commit b6fe942 into eloquent Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants