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

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

Merge "Camera: Decrease latency when joining sequencer thread"

parents efe567a2 039b9e94
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -265,7 +265,7 @@ CaptureSequencer::CaptureState CaptureSequencer::manageIdle(
    Mutex::Autolock l(mInputMutex);
    while (!mStartCapture) {
        res = mStartCaptureSignal.waitRelative(mInputMutex,
                kWaitDuration);
                kIdleWaitDuration);
        if (res == TIMED_OUT) break;
    }
    if (mStartCapture) {
+1 −0
Original line number Diff line number Diff line
@@ -111,6 +111,7 @@ class CaptureSequencer:
     * Internal to CaptureSequencer
     */
    static const nsecs_t kWaitDuration = 100000000; // 100 ms
    static const nsecs_t kIdleWaitDuration = 10000000; // 10 ms
    static const int kMaxTimeoutsForPrecaptureStart = 10; // 1 sec
    static const int kMaxTimeoutsForPrecaptureEnd = 20;  // 2 sec
    static const int kMaxTimeoutsForCaptureEnd    = 40;  // 4 sec