Searched refs:ref_count_ (Results 1 - 25 of 60) sorted by relevance

123

/external/chromium_org/base/memory/
H A Dref_counted.cc14 &const_cast<RefCountedThreadSafeBase*>(this)->ref_count_);
17 RefCountedThreadSafeBase::RefCountedThreadSafeBase() : ref_count_(0) {
34 AtomicRefCountInc(&ref_count_);
40 DCHECK(!AtomicRefCountIsZero(&ref_count_));
42 if (!AtomicRefCountDec(&ref_count_)) {
/external/chromium_org/native_client_sdk/src/libraries/sdk_util/
H A Dref_object.h31 ref_count_ = 0;
43 int RefCount() const { return ref_count_; }
52 AtomicAddFetch(&ref_count_, 1);
56 Atomic32 val = AtomicAddFetch(&ref_count_, -1);
66 Atomic32 ref_count_; member in class:sdk_util::RefObject
/external/chromium_org/mojo/services/test_service/
H A Dtest_service_application.cc19 TestServiceApplication::TestServiceApplication() : ref_count_(0) {
43 assert(ref_count_ >= 0);
44 ref_count_++;
48 assert(ref_count_ > 0);
49 ref_count_--;
50 if (ref_count_ <= 0)
/external/chromium_org/base/win/
H A Diunknown_impl.cc11 : ref_count_(0) {
18 base::AtomicRefCountInc(&ref_count_);
23 if (!base::AtomicRefCountDec(&ref_count_)) {
H A Diunknown_impl.h32 AtomicRefCount ref_count_; member in class:base::win::IUnknownImpl
/external/chromium_org/third_party/sfntly/cpp/src/test/
H A Dsmart_pointer_test.cc35 EXPECT_EQ(size_t(1), p1->ref_count_);
40 EXPECT_EQ(size_t(2), p1->ref_count_);
41 EXPECT_EQ(size_t(2), p2->ref_count_);
46 EXPECT_EQ(size_t(3), p1->ref_count_);
47 EXPECT_EQ(size_t(3), p2->ref_count_);
48 EXPECT_EQ(size_t(3), p3->ref_count_);
52 EXPECT_EQ(size_t(2), p1->ref_count_);
53 EXPECT_EQ(size_t(1), p2->ref_count_);
54 EXPECT_EQ(size_t(2), p3->ref_count_);
58 EXPECT_EQ(size_t(1), p1->ref_count_);
[all...]
/external/chromium_org/third_party/webrtc/modules/desktop_capture/mac/
H A Dfull_screen_chrome_window_detector.h37 void AddRef() { ++ref_count_; }
39 if (--ref_count_ == 0)
54 Atomic32 ref_count_; member in class:webrtc::FullScreenChromeWindowDetector
H A Ddesktop_configuration_monitor.h41 void AddRef() { ++ref_count_; }
43 if (--ref_count_ == 0)
56 Atomic32 ref_count_; member in class:webrtc::DesktopConfigurationMonitor
/external/sfntly/cpp/src/test/
H A Dsmart_pointer_test.cc35 EXPECT_EQ(size_t(1), p1->ref_count_);
40 EXPECT_EQ(size_t(2), p1->ref_count_);
41 EXPECT_EQ(size_t(2), p2->ref_count_);
46 EXPECT_EQ(size_t(3), p1->ref_count_);
47 EXPECT_EQ(size_t(3), p2->ref_count_);
48 EXPECT_EQ(size_t(3), p3->ref_count_);
52 EXPECT_EQ(size_t(2), p1->ref_count_);
53 EXPECT_EQ(size_t(1), p2->ref_count_);
54 EXPECT_EQ(size_t(2), p3->ref_count_);
58 EXPECT_EQ(size_t(1), p1->ref_count_);
[all...]
/external/chromium_org/third_party/webrtc/system_wrappers/interface/
H A Dref_count.h46 RefCountImpl() : ref_count_(0) {}
49 explicit RefCountImpl(P p) : T(p), ref_count_(0) {}
52 RefCountImpl(P1 p1, P2 p2) : T(p1, p2), ref_count_(0) {}
55 RefCountImpl(P1 p1, P2 p2, P3 p3) : T(p1, p2, p3), ref_count_(0) {}
58 RefCountImpl(P1 p1, P2 p2, P3 p3, P4 p4) : T(p1, p2, p3, p4), ref_count_(0) {}
62 : T(p1, p2, p3, p4, p5), ref_count_(0) {}
65 return ++ref_count_;
70 ref_count = --ref_count_;
77 Atomic32 ref_count_; member in class:webrtc::RefCountImpl
/external/webrtc/src/system_wrappers/interface/
H A Dref_count.h46 RefCountImpl() : ref_count_(0) {}
49 explicit RefCountImpl(P p) : T(p), ref_count_(0) {}
52 RefCountImpl(P1 p1, P2 p2) : T(p1, p2), ref_count_(0) {}
55 RefCountImpl(P1 p1, P2 p2, P3 p3) : T(p1, p2, p3), ref_count_(0) {}
58 RefCountImpl(P1 p1, P2 p2, P3 p3, P4 p4) : T(p1, p2, p3, p4), ref_count_(0) {}
62 : T(p1, p2, p3, p4, p5), ref_count_(0) {}
65 return ++ref_count_;
70 ref_count = --ref_count_;
77 Atomic32 ref_count_; member in class:webrtc::RefCountImpl
/external/chromium_org/third_party/webrtc/base/
H A Dreferencecountedsingletonfactory.h35 ReferenceCountedSingletonFactory() : ref_count_(0) {}
38 ASSERT(ref_count_ == 0);
53 if (ref_count_ == 0) {
60 ++ref_count_;
62 LOG(LS_VERBOSE) << "Number of references: " << ref_count_;
68 ASSERT(ref_count_ > 0);
70 --ref_count_;
71 LOG(LS_VERBOSE) << "Number of references: " << ref_count_;
72 if (ref_count_ == 0) {
78 int ref_count_; member in class:rtc::ReferenceCountedSingletonFactory
[all...]
H A Drefcount.h32 RefCountedObject() : ref_count_(0) {
36 explicit RefCountedObject(P p) : T(p), ref_count_(0) {
40 RefCountedObject(P1 p1, P2 p2) : T(p1, p2), ref_count_(0) {
44 RefCountedObject(P1 p1, P2 p2, P3 p3) : T(p1, p2, p3), ref_count_(0) {
49 : T(p1, p2, p3, p4), ref_count_(0) {
54 : T(p1, p2, p3, p4, p5), ref_count_(0) {
58 return rtc::AtomicOps::Increment(&ref_count_);
62 int count = rtc::AtomicOps::Decrement(&ref_count_);
73 int ref_count_; member in class:rtc::RefCountedObject
/external/chromium_org/third_party/webrtc/video_engine/
H A Dvie_manager_base.cc44 ref_count_(0) {
49 assert(ref_count_ == 0);
65 vie_scoped_manager_->ref_count_++;
69 vie_scoped_manager_->ref_count_--;
/external/chromium_org/mojo/public/cpp/bindings/lib/
H A Dshared_data.h63 Holder() : value(), ref_count_(1) {
65 Holder(const T& value) : value(value), ref_count_(1) {
68 void Retain() { ++ref_count_; }
69 void Release() { if (--ref_count_ == 0) delete this; }
74 int ref_count_; member in class:mojo::internal::SharedData::Holder
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_library_view.h30 : type_(TYPE_NONE), crazy_(NULL), system_(NULL), name_(), ref_count_(1) {}
56 void AddRef() { ref_count_++; }
60 bool SafeDecrementRef() { return (--ref_count_ == 0); }
75 int ref_count() const { return ref_count_; }
82 int ref_count_; member in class:crazy::LibraryView
/external/chromium_org/third_party/webrtc/modules/desktop_capture/x11/
H A Dshared_x_display.h50 void AddRef() { ++ref_count_; }
52 if (--ref_count_ == 0)
73 Atomic32 ref_count_; member in class:webrtc::SharedXDisplay
/external/chromium_org/third_party/webrtc/modules/desktop_capture/
H A Dshared_desktop_frame.cc24 bool HasOneRef() { return ref_count_.Value() == 1; }
27 return ++ref_count_;
32 ref_count = --ref_count_;
41 Atomic32 ref_count_; member in class:webrtc::SharedDesktopFrame::Core
/external/chromium_org/third_party/libjingle/source/talk/media/webrtc/
H A Dwebrtctexturevideoframe_unittest.cc35 NativeHandleImpl() : ref_count_(0) {}
37 virtual int32_t AddRef() { return ++ref_count_; }
38 virtual int32_t Release() { return --ref_count_; }
41 int32_t ref_count() { return ref_count_; }
43 int32_t ref_count_; member in class:NativeHandleImpl
/external/chromium_org/third_party/webrtc/common_video/
H A Dtexture_video_frame_unittest.cc20 NativeHandleImpl() : ref_count_(0) {}
22 virtual int32_t AddRef() { return ++ref_count_; }
23 virtual int32_t Release() { return --ref_count_; }
26 int32_t ref_count() { return ref_count_; }
28 int32_t ref_count_; member in class:webrtc::NativeHandleImpl
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/
H A Dfake_resource_manager.h54 void AddRef() { sdk_util::AtomicAddFetch(&ref_count_, 1); }
55 void Release() { sdk_util::AtomicAddFetch(&ref_count_, -1); }
56 int32_t ref_count() const { return ref_count_; }
87 int32_t ref_count_; member in class:FakeResourceTracker
/external/chromium_org/content/browser/service_worker/
H A Dservice_worker_handle.cc68 ref_count_(1),
119 DCHECK_GT(ref_count_, 0);
120 ++ref_count_;
124 DCHECK_GE(ref_count_, 0);
125 --ref_count_;
H A Dservice_worker_registration_handle.cc26 ref_count_(1),
66 DCHECK_GT(ref_count_, 0);
67 ++ref_count_;
71 DCHECK_GT(ref_count_, 0);
72 --ref_count_;
/external/chromium_org/content/common/
H A Dfont_cache_dispatcher_win.cc57 if (cache_[font_name].ref_count_ == 0) { // Requested font is new to cache.
58 cache_[font_name].ref_count_ = 1;
67 cache_[font_name].ref_count_ += ref_count_inc;
86 --((*element).second.ref_count_);
92 if (i->second.ref_count_ == 0) {
103 : font_(NULL), old_font_(NULL), dc_(NULL), ref_count_(0) {
121 int ref_count_; member in struct:content::__anon7576::FontCache::CacheElement
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/port/
H A Drefcount.h89 typeid(this).name(), object_counter_, object_id_, ref_count_)
125 RefCounted() : ref_count_(0) {
132 RefCounted(const RefCounted<TDerived>&) : ref_count_(0) {}
146 size_t new_count = AtomicIncrement(&ref_count_);
152 size_t new_ref_count = AtomicDecrement(&ref_count_);
162 mutable size_t ref_count_; // reference count of current object member in class:sfntly::RefCounted

Completed in 701 milliseconds

123