Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start working semaphore can be taken multiple times by a worker for a given buffer #5

Open
ryb-ableton opened this issue Jan 17, 2019 · 0 comments

Comments

@ryb-ableton
Copy link
Collaborator

ryb-ableton commented Jan 17, 2019

If one worker is fast and the other slow, it is possible for a the fast worker to loop multiple times during a single I/O callback, calling mStartWorkingSemaphore.wait() and decrementing the semaphore several times. I've verified that this occurs when using more than two threads on an iPhone.

This can be fixed by alternating between two start working semaphores.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant