MCPcopy Create free account
hub / github.com/Tencent/phxqueue / PrepareWait

Method PrepareWait

phxqueue/producer/batchhelper.cpp:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54void Task::PrepareWait() {
55 if (nullptr != notifier_) return;
56 notifier_ = move(comm::NotifierPool::GetInstance()->Get());
57}
58
59comm::RetCode Task::Wait() {
60 if (nullptr == notifier_) return comm::RetCode::RET_ERR_NOTIFIER_MISS;

Callers 1

BatchRawAddMethod · 0.80

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected