MCPcopy Create free account
hub / github.com/baidu/tera / Push

Method Push

src/utils/rpc_timer_list.cc:22–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void RpcTimerList::Push(RpcTimer* item) {
23 MutexLock lock(&mutex_);
24 item->prev = tail_;
25 item->next = NULL;
26 if (NULL != tail_) {
27 tail_->next = item;
28 }
29 tail_ = item;
30 if (NULL == head_) {
31 head_ = item;
32 }
33 size_++;
34}
35
36void RpcTimerList::Erase(RpcTimer* item) {
37 MutexLock lock(&mutex_);

Callers 4

UpdateDfsQpsQueueMethod · 0.45
ReadTabletMethod · 0.45
WriteTabletMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected