Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ec4e6b1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "audiohal: Check for EINTR and retry when waiting for EventFlag"

parents 832fcce0 d2ae9cd5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -194,8 +194,8 @@ retry:
        }
        return analyzeResult(retval);
    }
    if (ret == -EAGAIN) {
        // This normally retries no more than once.
    if (ret == -EAGAIN || ret == -EINTR) {
        // Spurious wakeup. This normally retries no more than once.
        goto retry;
    }
    return ret;
+4 −4
Original line number Diff line number Diff line
@@ -360,8 +360,8 @@ retry:
        }
        return ret;
    }
    if (ret == -EAGAIN) {
        // This normally retries no more than once.
    if (ret == -EAGAIN || ret == -EINTR) {
        // Spurious wakeup. This normally retries no more than once.
        goto retry;
    }
    return ret;
@@ -620,8 +620,8 @@ retry:
        }
        return ret;
    }
    if (ret == -EAGAIN) {
        // This normally retries no more than once.
    if (ret == -EAGAIN || ret == -EINTR) {
        // Spurious wakeup. This normally retries no more than once.
        goto retry;
    }
    return ret;