MCPcopy Create free account
hub / github.com/apache/brpc / EndBthreadSpan

Function EndBthreadSpan

src/brpc/span.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

GetTlsParentSpanFunction · 0.85
bthread_selfFunction · 0.85
ClearTlsParentSpanFunction · 0.85
set_ending_tidMethod · 0.80

Tested by

no test coverage detected