| 91 | } |
| 92 | |
| 93 | void SetParentInfo(const ThreadDebugInfo* parent) { |
| 94 | if (parent == nullptr) return; |
| 95 | parent_.system_thread_id_ = parent->system_thread_id_; |
| 96 | strings::strlcpy(parent_.thread_name_, parent->thread_name_, THREAD_NAME_SIZE); |
| 97 | query_id_ = parent->query_id_; |
| 98 | instance_id_ = parent->instance_id_; |
| 99 | } |
| 100 | |
| 101 | private: |
| 102 | /// Initializes a thread local pointer with thread_debug_info. |