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

Commit b2544bcc authored by Glenn Kasten's avatar Glenn Kasten Committed by android-build-merger
Browse files

sched_getscheduler may include SCHED_RESET_ON_FORK am: 8255ba7b

am: f4da60eb

Change-Id: Ia2adf6c6ca21336627b81eaf611aa3ae4b6590f4
parents 9e3906cd f4da60eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -924,7 +924,7 @@ nsecs_t AudioRecord::processAudioBuffer()
        int32_t tryCounter = kMaxTries;
        uint32_t pollUs = 10000;
        do {
            int policy = sched_getscheduler(0);
            int policy = sched_getscheduler(0) & ~SCHED_RESET_ON_FORK;
            if (policy == SCHED_FIFO || policy == SCHED_RR) {
                break;
            }
+1 −1
Original line number Diff line number Diff line
@@ -1777,7 +1777,7 @@ nsecs_t AudioTrack::processAudioBuffer()
        int32_t tryCounter = kMaxTries;
        uint32_t pollUs = 10000;
        do {
            int policy = sched_getscheduler(0);
            int policy = sched_getscheduler(0) & ~SCHED_RESET_ON_FORK;
            if (policy == SCHED_FIFO || policy == SCHED_RR) {
                break;
            }
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ bool FastThread::threadLoop()
                if (old <= 0) {
                    syscall(__NR_futex, coldFutexAddr, FUTEX_WAIT_PRIVATE, old - 1, NULL);
                }
                int policy = sched_getscheduler(0);
                int policy = sched_getscheduler(0) & ~SCHED_RESET_ON_FORK;
                if (!(policy == SCHED_FIFO || policy == SCHED_RR)) {
                    ALOGE("did not receive expected priority boost");
                }