commit | ca1d06cfa2f2b8d2be4390644e126cb68cdbb5ba | [log] [tgz] |
---|---|---|
author | Daniel Mihalyi <daniel.mihalyi@mattakis.com> | Mon Aug 18 18:45:31 2014 +0200 |
committer | Ian Rogers <irogers@google.com> | Mon Aug 18 11:13:28 2014 -0700 |
tree | e5e7d0caffc2538e2cc005705410c0496628d741 | |
parent | 90b180ee1edd17b8dca34ea9e58624818d2ee15a [diff] |
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<>. Change-Id: I1b84db1f2042836dc1110925243f49e5790156d6