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

Function slot_of_task_id

src/bthread/timer_thread.cpp:109–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109inline
110butil::ResourceId<TimerThread::Task> slot_of_task_id(TimerThread::TaskId id) {
111 butil::ResourceId<TimerThread::Task> slot = { (id & 0xFFFFFFFFul) };
112 return slot;
113}
114
115inline uint32_t version_of_task_id(TimerThread::TaskId id) {
116 return (uint32_t)(id >> 32);

Callers 3

unscheduleMethod · 0.85
run_and_deleteMethod · 0.85
try_deleteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected