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

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

Merge "Wait for Overlay thread exit before returning" into main

parents ed5d28f7 10f04c89
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -90,9 +90,12 @@ status_t Overlay::start(const sp<IGraphicBufferProducer>& outputSurface,

status_t Overlay::stop() {
    ALOGV("Overlay::stop");
    {
        Mutex::Autolock _l(mMutex);
        mState = STOPPING;
        mEventCond.signal();
    }
    join();
    return NO_ERROR;
}