/external/tensorflow/tensorflow/core/lib/core/ |
H A D | refcount.h | 55 mutable std::atomic_int_fast32_t ref_; member in class:tensorflow::core::RefCounted 77 inline RefCounted::RefCounted() : ref_(1) {} 79 inline RefCounted::~RefCounted() { DCHECK_EQ(ref_.load(), 0); } 82 DCHECK_GE(ref_.load(), 1); 83 ref_.fetch_add(1, std::memory_order_relaxed); 87 DCHECK_GT(ref_.load(), 0); 88 // If ref_==1, this object is owned only by the caller. Bypass a locked op 90 if (RefCountIsOne() || ref_.fetch_sub(1) == 1) { 92 DCHECK((ref_.store(0), true)); 101 return (ref_ [all...] |
/external/webrtc/webrtc/p2p/base/ |
H A D | transportcontroller.h | 129 RefCountedChannel() : impl_(nullptr), ref_(0) {} 131 : impl_(impl), ref_(0) {} 133 void AddRef() { ++ref_; } 135 ASSERT(ref_ > 0); 136 --ref_; 138 int ref() const { return ref_; } 145 int ref_; member in struct:cricket::TransportController::RefCountedChannel
|
/external/libchrome/base/memory/ |
H A D | weak_ptr.h | 144 // constructor by avoiding the need for a public accessor for ref_. A 146 // base class gives us a way to access ref_ in a protected fashion. 160 WeakReference ref_; member in class:base::internal::WeakPtrBase 188 return WeakPtr<Derived>(ptr.ref_, static_cast<Derived*>(ptr.ptr_)); 225 T* get() const { return ref_.is_valid() ? ptr_ : nullptr; } 237 ref_ = internal::WeakReference(); 255 // This pointer is only valid when ref_.is_valid() is true. Otherwise, its
|
/external/libchrome/base/metrics/ |
H A D | field_trial.h | 379 FieldTrialRef ref_; member in class:base::FieldTrial
|
/external/expat/xmlwf/ |
H A D | xmlwin32url.cxx | 73 ULONG ref_; member in class:Callback 82 return ref_++; 88 if (--ref_ == 0) { 92 return ref_; 260 ref_(0),
|
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
H A D | vktTextureShadowTests.cpp | 212 FilterCase (int tex_, const float ref_, const tcu::Vec2& minCoord_, const tcu::Vec2& maxCoord_) argument 216 , ref (ref_) 416 FilterCase (const int tex_, const float ref_, const tcu::Vec2& bottomLeft_, const tcu::Vec2& topRight_) argument 420 , ref (ref_) 633 FilterCase (const int tex_, float ref_, const tcu::Vec3& minCoord_, const tcu::Vec3& maxCoord_) argument 637 , ref (ref_)
|
/external/google-breakpad/src/testing/include/gmock/ |
H A D | gmock-actions.h | 539 explicit ReturnRefAction(T& ref) : ref_(ref) {} // NOLINT 551 return Action<F>(new Impl<F>(ref_)); 562 explicit Impl(T& ref) : ref_(ref) {} // NOLINT 565 return ref_; 569 T& ref_; member in class:testing::internal::ReturnRefAction::Impl 574 T& ref_; member in class:testing::internal::ReturnRefAction
|
/external/libvpx/libvpx/test/ |
H A D | variance_test.cc | 310 ref_ = new uint8_t[block_size() * unit]; 312 ASSERT_TRUE(ref_ != NULL); 317 ref_ = CONVERT_TO_BYTEPTR(ref_); 327 ref_ = reinterpret_cast<uint8_t *>(CONVERT_TO_SHORTPTR(ref_)); 332 delete[] ref_; 334 ref_ = NULL; 360 uint8_t *ref_; member in class:__anon12704::MainTestClass 386 memset(ref_, 612 uint8_t *ref_; member in class:__anon12704::SubpelVarianceTest [all...] |
/external/deqp/modules/gles3/functional/ |
H A D | es3fTextureShadowTests.cpp | 190 FilterCase (const glu::Texture2D* tex_, const float ref_, const tcu::Vec2& minCoord_, const tcu::Vec2& maxCoord_) argument 194 , ref (ref_) 441 FilterCase (const glu::TextureCube* tex_, const float ref_, const tcu::Vec2& bottomLeft_, const tcu::Vec2& topRight_) argument 445 , ref (ref_) 734 FilterCase (const glu::Texture2DArray* tex_, float ref_, const tcu::Vec3& minCoord_, const tcu::Vec3& maxCoord_) argument 738 , ref (ref_)
|
/external/googletest/googlemock/include/gmock/ |
H A D | gmock-actions.h | 657 explicit ReturnRefAction(T& ref) : ref_(ref) {} // NOLINT 669 return Action<F>(new Impl<F>(ref_)); 680 explicit Impl(T& ref) : ref_(ref) {} // NOLINT 683 return ref_; 687 T& ref_; member in class:testing::internal::ReturnRefAction::Impl 692 T& ref_; member in class:testing::internal::ReturnRefAction
|
/external/v8/testing/gmock/include/gmock/ |
H A D | gmock-actions.h | 657 explicit ReturnRefAction(T& ref) : ref_(ref) {} // NOLINT 669 return Action<F>(new Impl<F>(ref_)); 680 explicit Impl(T& ref) : ref_(ref) {} // NOLINT 683 return ref_; 687 T& ref_; member in class:testing::internal::ReturnRefAction::Impl 692 T& ref_; member in class:testing::internal::ReturnRefAction
|
/external/deqp/framework/common/ |
H A D | tcuTexture.cpp | 1716 static inline float execCompare (const tcu::Vec4& color, Sampler::CompareMode compare, int chanNdx, float ref_, bool isFixedPoint) argument 1720 const float ref = (clampValues) ? (de::clamp(ref_, 0.0f, 1.0f)) : (ref_);
|
/external/valgrind/drd/tests/ |
H A D | tsan_unittest.cpp | 3695 ref_ = 0; 3700 CHECK(ref_ == 0); // race may be reported here 3704 ref_ = -1; 3716 CHECK(ref_ >= 0); 3717 ref_++; 3723 CHECK(ref_ > 0); 3724 ref_--; 3725 bool do_delete = ref_ == 0; 3746 ANNOTATE_BENIGN_RACE(&this->ref_, "needs annotation"); 3754 int ref_; member in struct:RefCountedClass 3936 int ref_; // used in atomic ops. member in struct:AtomicRefCountedClass [all...] |