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

Method Init

src/bthread/task_tracer.cpp:54–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool TaskTracer::SignalSync::Init() {
55 if (pipe(pipe_fds) != 0) {
56 PLOG(ERROR) << "Fail to pipe";
57 return false;
58 }
59 if (butil::make_non_blocking(pipe_fds[0]) != 0) {
60 PLOG(ERROR) << "Fail to make_non_blocking";
61 return false;
62 }
63 if (butil::make_non_blocking(pipe_fds[1]) != 0) {
64 PLOG(ERROR) << "Fail to make_non_blocking";
65 return false;
66 }
67
68 return true;
69}
70
71std::string TaskTracer::Result::OutputToString() const {
72 std::string str;

Callers 2

initMethod · 0.45
SignalTraceMethod · 0.45

Calls 3

make_non_blockingFunction · 0.85
ignore_resultFunction · 0.85
exposeMethod · 0.45

Tested by

no test coverage detected