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

Function version_of_task_id

src/bthread/timer_thread.cpp:115–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115inline uint32_t version_of_task_id(TimerThread::TaskId id) {
116 return (uint32_t)(id >> 32);
117}
118
119inline bool task_greater(const TimerThread::Task* a, const TimerThread::Task* b) {
120 return a->run_time > b->run_time;

Callers 3

unscheduleMethod · 0.85
run_and_deleteMethod · 0.85
try_deleteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected