Skip to content

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

Description

@ryb-ableton

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions