OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef TracedTask_h | |
6 #define TracedTask_h | |
7 | |
8 #include "platform/Task.h" | |
9 #include "platform/TraceEvent.h" | |
10 #include "platform/TraceLocation.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class TracedTask { | |
15 public: | |
16 typedef Function<void()> Task; | |
17 | |
18 void run() const; | |
19 | |
20 private: | |
21 friend class Scheduler; | |
22 TracedTask(const Task&, const TraceLocation&, const char* traceName); | |
23 | |
24 static int s_nextFlowTraceID; | |
Sami
2014/09/04 09:51:07
Should be volatile.
picksi1
2014/09/05 08:28:33
Done.
| |
25 | |
26 uint64_t m_flowTraceID; | |
27 Task m_task; | |
28 TraceLocation m_location; | |
29 const char* m_traceName; | |
30 }; | |
31 | |
32 } // namespace blink | |
33 | |
34 #endif // TracedTask_h | |
OLD | NEW |