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

Commit 3c901299 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

am: b2544bcc

Change-Id: I8e28c76bf3936f67f4a503b0d7cf438c19c8e472
parents 8acb47a9 b2544bcc
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");
                }