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

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

Merge "Move RunningTees singleton to cpp file." into main

parents bbc5c146 ad945932
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -514,6 +514,12 @@ status_t AudioFileHandler::createInternal(
    return NO_ERROR; // return full path
}

/* static */
NBAIO_Tee::RunningTees& NBAIO_Tee::getRunningTees() {
    [[clang::no_destroy]] static RunningTees runningTees;
    return runningTees;
}

} // namespace android

#endif // TEE_SINK
+1 −4
Original line number Diff line number Diff line
@@ -310,10 +310,7 @@ private:
    };

    // singleton
    static RunningTees &getRunningTees() {
        static RunningTees runningTees;
        return runningTees;
    }
    static RunningTees& getRunningTees();

    // The NBAIO TeeImpl may have lifetime longer than NBAIO_Tee if
    // RunningTees::dump() is being called simultaneous to ~NBAIO_Tee().