Optimized instrumentation listener handling
Some instrumentation listener lists may be modified while iterating over the list to deliver an instrumentation event. Therefore the previous implementation copied the list of listeners before starting the iteration. This new implementation only copies the list of instrumentation listeners when the list is changed. Instances of the list are reference counted using std::shared_ptr<>. Bug: 16814665 (cherry picked from commit ca1d06cf) Change-Id: Ib2e6b980de85b75f1c8f4a8825bdc7767154663a
Loading
Please sign in to comment