Home
last modified time | relevance | path

Searched refs:ref_pair (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/src/core/lib/gprpp/
Ddual_ref_counted.h247 static uint32_t GetStrongRefs(uint64_t ref_pair) { in GetStrongRefs() argument
248 return static_cast<uint32_t>(ref_pair >> 32); in GetStrongRefs()
250 static uint32_t GetWeakRefs(uint64_t ref_pair) { in GetWeakRefs() argument
251 return static_cast<uint32_t>(ref_pair & 0xffffffffu); in GetWeakRefs()
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dsubchannel.cc87 gpr_atm ref_pair; member
205 gpr_atm old_val = barrier ? gpr_atm_full_fetch_add(&c->ref_pair, delta) in ref_mutate()
206 : gpr_atm_no_barrier_fetch_add(&c->ref_pair, delta); in ref_mutate()
238 gpr_atm old_refs = gpr_atm_acq_load(&c->ref_pair); in grpc_subchannel_ref_from_weak_ref()
241 if (gpr_atm_rel_cas(&c->ref_pair, old_refs, new_refs)) { in grpc_subchannel_ref_from_weak_ref()
345 gpr_atm_no_barrier_store(&c->ref_pair, 1 << INTERNAL_REF_BITS); in grpc_subchannel_create()