[Webkit-unassigned] [Bug 90264] Web Inspector: added low-level instrumentation support for TimelineAgent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 29 05:41:18 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=90264





--- Comment #6 from Andrey Kosyakov <caseq at chromium.org>  2012-06-29 05:41:17 PST ---
(From update of attachment 150125)
View in context: https://bugs.webkit.org/attachment.cgi?id=150125&action=review

> Source/WebCore/inspector/InspectorTimelineAgent.cpp:101
> +WTF::ThreadSpecific<InspectorTimelineAgent*>* InspectorTimelineAgent::s_inspectorTimelineAgent = new WTF::ThreadSpecific<InspectorTimelineAgent*>();

Please change this to use singleton-style initialization on demand, e.g.
static WTF::ThreadSpecific<InspectorTimelineAgent*>* InspectorTimelineAgent::threadSpecificInstance()
{
    AtomicallyInitializedStatic(WTF::ThreadSpecific<InspectorTimelineAgent*>, instance = new WTF::ThreadSpecific<InspectorTimelineAgent*>());
    return instance;
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list