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

Function get_slot

src/bthread/id.cpp:161–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161inline IdResourceId get_slot(bthread_id_t id) {
162 const IdResourceId tmp = { (id.value >> 32) };
163 return tmp;
164}
165
166inline uint32_t get_version(bthread_id_t id) {
167 return (uint32_t)(id.value & 0xFFFFFFFFul);

Callers 14

id_valueFunction · 0.70
id_statusFunction · 0.70
bthread_id_cancelFunction · 0.70
bthread_id_joinFunction · 0.70
bthread_id_trylockFunction · 0.70
bthread_id_unlockFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected