| 178 | } |
| 179 | |
| 180 | void stack_trace(std::ostream& os, bthread_t tid) { |
| 181 | TaskControl* c = get_task_control(); |
| 182 | if (NULL == c) { |
| 183 | os << "TaskControl has not been created"; |
| 184 | return; |
| 185 | } |
| 186 | c->stack_trace(os, tid); |
| 187 | } |
| 188 | |
| 189 | std::string stack_trace(bthread_t tid) { |
| 190 | TaskControl* c = get_task_control(); |