| 150 | } |
| 151 | |
| 152 | string Mutex::GetOwnerThreadInfo() const { |
| 153 | string str = Substitute("Owner tid: $0; Self tid: $1; ", owning_tid_, Env::Default()->gettid()); |
| 154 | if (FLAGS_debug_mutex_collect_stacktrace) { |
| 155 | SubstituteAndAppend(&str, "Owner stack:\n$0", stack_trace_->Symbolize()); |
| 156 | } else { |
| 157 | str += "To collect the owner stack trace, enable the flag --debug_mutex_collect_stacktrace"; |
| 158 | } |
| 159 | return str; |
| 160 | } |
| 161 | |
| 162 | #endif |
| 163 |
nothing calls this directly
no test coverage detected