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

Function make_task_id

src/bthread/timer_thread.cpp:104–107  ·  view source on GitHub ↗

Utilies for making and extracting TaskId.

Source from the content-addressed store, hash-verified

102
103// Utilies for making and extracting TaskId.
104inline TimerThread::TaskId make_task_id(
105 butil::ResourceId<TimerThread::Task> slot, uint32_t version) {
106 return TimerThread::TaskId((((uint64_t)version) << 32) | slot.value);
107}
108
109inline
110butil::ResourceId<TimerThread::Task> slot_of_task_id(TimerThread::TaskId id) {

Callers 1

scheduleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected