| 60 | } |
| 61 | |
| 62 | void EndBthreadSpan() { |
| 63 | std::shared_ptr<Span> span = GetTlsParentSpan(); |
| 64 | if (span) { |
| 65 | span->set_ending_tid(bthread_self()); |
| 66 | } |
| 67 | |
| 68 | ClearTlsParentSpan(); |
| 69 | } |
| 70 | |
| 71 | void SetTlsParentSpan(std::shared_ptr<Span> span) { |
| 72 | using namespace bthread; |
nothing calls this directly
no test coverage detected