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

Function make_id

src/bthread/id.cpp:155–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153typedef butil::ResourceId<Id> IdResourceId;
154
155inline bthread_id_t make_id(uint32_t version, IdResourceId slot) {
156 const bthread_id_t tmp =
157 { (((uint64_t)slot.value) << 32) | (uint64_t)version };
158 return tmp;
159}
160
161inline IdResourceId get_slot(bthread_id_t id) {
162 const IdResourceId tmp = { (id.value >> 32) };

Callers 3

id_statusFunction · 0.70
id_create_implFunction · 0.70
id_create_ranged_implFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected