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

Commit 9a072183 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

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


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

} // namespace android
} // namespace android


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


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


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