MCPcopy Create free account
hub / github.com/Tencent/phxqueue / ~Notifier

Method ~Notifier

phxqueue/comm/notifierpool.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45Notifier::~Notifier() {
46 for (int i{0}; i < 2; ++i) {
47 if (-1 != impl_->fds[i]) close(impl_->fds[i]);
48 impl_->fds[i] = -1;
49 }
50}
51
52bool Notifier::Init() {
53 if (0 != pipe(impl_->fds)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected