Home
last modified time | relevance | path

Searched refs:refs_ (Results 1 – 21 of 21) sorted by relevance

/external/grpc-grpc/src/core/lib/gprpp/
Dref_counted.h56 if (gpr_unref(&refs_)) { in Unref()
70 RefCounted() { gpr_ref_init(&refs_, 1); } in RefCounted()
79 void IncrementRefCount() { gpr_ref(&refs_); } in IncrementRefCount()
81 gpr_refcount refs_; variable
101 gpr_atm old_refs = gpr_atm_no_barrier_load(&refs_.count); in Ref()
115 if (gpr_unref(&refs_)) { in Unref()
122 gpr_atm old_refs = gpr_atm_no_barrier_load(&refs_.count); in Unref()
144 gpr_ref_init(&refs_, 1); in RefCountedWithTracing()
159 void IncrementRefCount() { gpr_ref(&refs_); } in IncrementRefCount()
162 gpr_refcount refs_; variable
Dorphanable.h92 InternallyRefCounted() { gpr_ref_init(&refs_, 1); } in InternallyRefCounted()
101 if (gpr_unref(&refs_)) { in Unref()
107 void IncrementRefCount() { gpr_ref(&refs_); } in IncrementRefCount()
109 gpr_refcount refs_; variable
141 gpr_ref_init(&refs_, 1); in InternallyRefCountedWithTracing()
159 gpr_atm old_refs = gpr_atm_no_barrier_load(&refs_.count); in Ref()
173 if (gpr_unref(&refs_)) { in Unref()
180 gpr_atm old_refs = gpr_atm_no_barrier_load(&refs_.count); in Unref()
189 void IncrementRefCount() { gpr_ref(&refs_); } in IncrementRefCount()
192 gpr_refcount refs_; variable
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gprpp/
Ddual_ref_counted.h70 refs_.FetchAdd(MakeRefPair(-1, 1), MemoryOrder::ACQ_REL); in Unref()
88 refs_.FetchAdd(MakeRefPair(-1, 1), MemoryOrder::ACQ_REL); in Unref()
111 uint64_t prev_ref_pair = refs_.Load(MemoryOrder::ACQUIRE); in RefIfNonZero()
122 } while (!refs_.CompareExchangeWeak( in RefIfNonZero()
130 uint64_t prev_ref_pair = refs_.Load(MemoryOrder::ACQUIRE); in RefIfNonZero()
147 } while (!refs_.CompareExchangeWeak( in RefIfNonZero()
172 refs_.FetchSub(MakeRefPair(0, 1), MemoryOrder::ACQ_REL); in WeakUnref()
194 refs_.FetchSub(MakeRefPair(0, 1), MemoryOrder::ACQ_REL); in WeakUnref()
232 refs_(MakeRefPair(initial_refcount, 0)) { in trace_()
257 refs_.FetchAdd(MakeRefPair(1, 0), MemoryOrder::RELAXED); in IncrementRefCount()
[all …]
Dorphanable.h90 : refs_(initial_refcount, trace) {} in refs_() function
104 if (GPR_UNLIKELY(refs_.Unref())) { in Unref()
109 if (GPR_UNLIKELY(refs_.Unref(location, reason))) { in Unref()
115 void IncrementRefCount() { refs_.Ref(); } in IncrementRefCount()
117 refs_.Ref(location, reason); in IncrementRefCount()
120 grpc_core::RefCount refs_; variable
Dref_counted.h289 if (GPR_UNLIKELY(refs_.Unref())) { in Unref()
294 if (GPR_UNLIKELY(refs_.Unref(location, reason))) { in Unref()
300 return RefCountedPtr<Child>(refs_.RefIfNonZero() ? static_cast<Child*>(this) in RefIfNonZero()
305 return RefCountedPtr<Child>(refs_.RefIfNonZero(location, reason) in RefIfNonZero()
318 : refs_(initial_refcount, trace) {} in refs_() function
325 void IncrementRefCount() { refs_.Ref(); } in IncrementRefCount()
327 refs_.Ref(location, reason); in IncrementRefCount()
330 RefCount refs_; variable
/external/grpc-grpc/src/cpp/common/
Dalarm.cc40 gpr_ref_init(&refs_, 1); in AlarmImpl()
99 void Ref() { gpr_ref(&refs_); } in Ref()
101 if (gpr_unref(&refs_)) { in Unref()
107 gpr_refcount refs_; member in grpc::internal::AlarmImpl
/external/rust/crates/grpcio-sys/grpc/src/cpp/common/
Dalarm.cc41 gpr_ref_init(&refs_, 1); in AlarmImpl()
111 void Ref() { gpr_ref(&refs_); } in Ref()
113 if (gpr_unref(&refs_)) { in Unref()
119 gpr_refcount refs_; member in grpc::internal::AlarmImpl
/external/grpc-grpc/src/cpp/server/
Dserver_context.cc46 refs_(2), in CompletionOp()
78 int refs_; member in grpc::ServerContext::CompletionOp
85 if (--refs_ == 0) { in Unref()
109 if (--refs_ == 0) { in FinalizeResult()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/slice/
Dslice.cc79 : base_(grpc_slice_refcount::Type::REGULAR, &refs_, Destroy, this, in NewSliceRefcount()
89 RefCount refs_; member in grpc_core::NewSliceRefcount
139 : base_(grpc_slice_refcount::Type::REGULAR, &refs_, Destroy, this, in NewWithLenSliceRefcount()
150 RefCount refs_; member in grpc_core::NewWithLenSliceRefcount
160 : base_(grpc_slice_refcount::Type::REGULAR, &refs_, Destroy, this, in MovedStringSliceRefCount()
172 grpc_core::RefCount refs_; member in grpc_core::MovedStringSliceRefCount
180 : base_(grpc_slice_refcount::Type::REGULAR, &refs_, Destroy, this, in MovedCppStringSliceRefCount()
192 grpc_core::RefCount refs_; member in grpc_core::MovedCppStringSliceRefCount
283 : base_(grpc_slice_refcount::Type::REGULAR, &refs_, Destroy, this, in MallocRefCount()
291 grpc_core::RefCount refs_; member in __anonfd24daf80111::MallocRefCount
/external/webp/src/enc/
Dbackward_references_enc.c91 refs->free_blocks_ = refs->refs_; in VP8LClearBackwardRefs()
92 refs->tail_ = &refs->refs_; in VP8LClearBackwardRefs()
94 refs->refs_ = NULL; in VP8LClearBackwardRefs()
111 (refs1->tail_ != NULL && refs1->tail_ == &refs1->refs_); in BackwardRefsSwap()
113 (refs2->tail_ != NULL && refs2->tail_ == &refs2->refs_); in BackwardRefsSwap()
117 if (point_to_refs2) refs1->tail_ = &refs1->refs_; in BackwardRefsSwap()
118 if (point_to_refs1) refs2->tail_ = &refs2->refs_; in BackwardRefsSwap()
124 refs->tail_ = &refs->refs_; in VP8LBackwardRefsInit()
131 c.cur_block_ = refs->refs_; in VP8LRefsCursorInit()
132 if (refs->refs_ != NULL) { in VP8LRefsCursorInit()
[all …]
Dvp8li_enc.h74 struct VP8LBackwardRefs refs_[4]; // Backward Refs array for temporaries. member
Dvp8l_enc.c465 for (i = 0; i < 4; ++i) VP8LBackwardRefsInit(&enc->refs_[i], refs_block_size); in EncoderInit()
1111 (VP8LBackwardRefs*)&enc->refs_[0], transform_width, transform_height, in ApplyPredictFilter()
1131 (VP8LBackwardRefs*)&enc->refs_[0], transform_width, transform_height, in ApplyCrossColorFilter()
1478 &enc->refs_[0], palette_size, 1, /*quality=*/20, in EncodePalette()
1505 for (i = 0; i < 4; ++i) VP8LBackwardRefsClear(&enc->refs_[i]); in VP8LEncoderDelete()
1581 VP8LBackwardRefsClear(&enc->refs_[0]); in EncodeStreamHook()
1582 VP8LBackwardRefsClear(&enc->refs_[1]); in EncodeStreamHook()
1648 err = EncodeImageInternal(bw, enc->argb_, &enc->hash_chain_, enc->refs_, in EncodeStreamHook()
Dbackward_references_enc.h174 PixOrCopyBlock* refs_; // list of currently used blocks member
/external/rust/crates/grpcio-sys/grpc/src/cpp/server/
Dserver_context.cc54 refs_(2), in CompletionOp()
145 grpc_core::RefCount refs_; member in grpc::ServerContextBase::CompletionOp
154 if (refs_.Unref()) { in Unref()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dapi.cc94 refs_(std::move(refs)), in InferenceContextWithBatchImpl()
136 auto ref = refs_->FindBuffer(id); in Execute()
163 std::unique_ptr<ObjectManager> refs_; member in tflite::gpu::gl::__anone3705d010111::InferenceContextWithBatchImpl
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dinternal.h237 void Ref() { refs_.Ref(); } in Ref()
239 if (GPR_UNLIKELY(refs_.Unref())) { in Unref()
261 grpc_core::RefCount refs_; variable
Dchttp2_transport.cc2918 refs_(2), in Chttp2IncomingByteStream()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dresource_quota.cc450 : base_(grpc_slice_refcount::Type::REGULAR, &refs_, Destroy, this, in RuSliceRefcount()
462 RefCount refs_; member in grpc_core::RuSliceRefcount
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dinternal.h254 gpr_refcount refs_; variable
Dchttp2_transport.cc2811 gpr_ref_init(&refs_, 2); in Chttp2IncomingByteStream()
2837 if (gpr_unref(&refs_)) { in Unref()
2842 void Chttp2IncomingByteStream::Ref() { gpr_ref(&refs_); } in Ref()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dclient_channel.cc997 RefCount refs_; member in grpc_core::__anon5e2240680111::LoadBalancedCall
4907 : refs_(1, GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_routing_trace) in LoadBalancedCall()
4945 if (GPR_UNLIKELY(refs_.Unref())) { in Unref()
4952 if (GPR_UNLIKELY(refs_.Unref(location, reason))) { in Unref()
4957 void LoadBalancedCall::IncrementRefCount() { refs_.Ref(); } in IncrementRefCount()
4961 refs_.Ref(location, reason); in IncrementRefCount()