Commit 96add978 authored by Daniel Mihalyi's avatar Daniel Mihalyi Committed by Sebastien Hertz
Browse files

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
parent 39c2a379
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment