Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
timelinethread.h
Go to the documentation of this file.
1 
18 #ifndef ION_PROFILE_TIMELINETHREAD_H_
19 #define ION_PROFILE_TIMELINETHREAD_H_
20 
21 #include <string>
22 
23 #include "ion/port/threadutils.h"
25 
27 class TimelineThread : public TimelineNode {
28  public:
29  TimelineThread(const std::string& thread_name,
30  const ion::port::ThreadId& thread_id)
31  : TimelineNode(thread_name), thread_id_(thread_id) {}
32 
33  Type GetType() const override { return Type::kThread; }
34  const ion::port::ThreadId& GetThreadId() const { return thread_id_; }
35 
36  private:
37  ion::port::ThreadId thread_id_;
38 };
39 
40 #endif // ION_PROFILE_TIMELINETHREAD_H_
const ion::port::ThreadId & GetThreadId() const
Copyright 2016 Google Inc.
Copyright 2016 Google Inc.
Definition: timelinenode.h:28
TimelineThread(const std::string &thread_name, const ion::port::ThreadId &thread_id)
Type GetType() const override
pthread_t ThreadId
Defines a type that can be used to identify a thread.
Definition: threadutils.h:40