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

Function _make_vref

src/bthread/execution_queue_inl.h:224–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 static inline int64_t _make_vref(uint32_t version, int32_t ref) {
225 // 1: Intended conversion to uint32_t, nref=-1 is 00000000FFFFFFFF
226 return (((uint64_t)version) << 32) | (uint32_t/*1*/)ref;
227 }
228
229 // Don't change the order of _head, _versioned_ref and _stopped unless you
230 // see improvement of performance in test

Callers 3

dereferenceMethod · 0.85
stopMethod · 0.85
addressMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected