Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Replace semaphore and sleep with pthread barrier #49

Merged
merged 2 commits into from
Mar 31, 2020

Conversation

mspiegel
Copy link
Contributor

Use a barrier to ensure that the reader and writer threads have opened the channel. Use the barrier to ensure that each round of reading/writing has completed.

Michael Spiegel added 2 commits March 30, 2020 21:24
Use a barrier to ensure that the reader and writer threads
have opened the channel. Use the barrier to ensure that each
round of reading/writing has completed.
@mspiegel mspiegel changed the title Replace semaphore and waiting with pthread barrier Replace semaphore and sleep with pthread barrier Mar 31, 2020
@mspiegel mspiegel merged commit a8f296c into master Mar 31, 2020
@mspiegel mspiegel deleted the mspiegel/pthread-barrier branch April 21, 2020 17:46
mspiegel referenced this pull request in mspiegel/pirate Mar 3, 2021
Replace semaphore and sleep with pthread barrier
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant