Home
last modified time | relevance | path

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

/external/grpc-grpc/src/core/ext/filters/client_channel/
Dsubchannel.cc53 #define INTERNAL_REF_BITS 16 macro
54 #define STRONG_REF_MASK (~(gpr_atm)((1 << INTERNAL_REF_BITS) - 1))
220 old_refs = ref_mutate(c, (1 << INTERNAL_REF_BITS), in grpc_subchannel_ref()
239 if (old_refs >= (1 << INTERNAL_REF_BITS)) { in grpc_subchannel_ref_from_weak_ref()
240 gpr_atm new_refs = old_refs + (1 << INTERNAL_REF_BITS); in grpc_subchannel_ref_from_weak_ref()
265 c, static_cast<gpr_atm>(1) - static_cast<gpr_atm>(1 << INTERNAL_REF_BITS), in grpc_subchannel_unref()
267 if ((old_refs & STRONG_REF_MASK) == (1 << INTERNAL_REF_BITS)) { in grpc_subchannel_unref()
345 gpr_atm_no_barrier_store(&c->ref_pair, 1 << INTERNAL_REF_BITS); in grpc_subchannel_create()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dsubchannel.cc60 #define INTERNAL_REF_BITS 16 macro
61 #define STRONG_REF_MASK (~(gpr_atm)((1 << INTERNAL_REF_BITS) - 1))
657 gpr_atm_no_barrier_store(&ref_pair_, 1 << INTERNAL_REF_BITS); in Subchannel()
752 old_refs = RefMutate((1 << INTERNAL_REF_BITS), in Ref()
762 static_cast<gpr_atm>(1) - static_cast<gpr_atm>(1 << INTERNAL_REF_BITS), in Unref()
764 if ((old_refs & STRONG_REF_MASK) == (1 << INTERNAL_REF_BITS)) { in Unref()
801 if (old_refs >= (1 << INTERNAL_REF_BITS)) { in RefFromWeakRef()
802 gpr_atm new_refs = old_refs + (1 << INTERNAL_REF_BITS); in RefFromWeakRef()