/external/chromium/base/ |
D | atomicops_unittest.cc | 35 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 1), 1); in TestAtomicIncrement() 40 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 2), 3); in TestAtomicIncrement() 45 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 3), 6); in TestAtomicIncrement() 50 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -3), 3); in TestAtomicIncrement() 55 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -2), 1); in TestAtomicIncrement() 60 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), 0); in TestAtomicIncrement() 65 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), -1); in TestAtomicIncrement() 70 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -4), -5); in TestAtomicIncrement() 75 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 5), 0); in TestAtomicIncrement() 88 AtomicType prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 1); in TestCompareAndSwap() [all …]
|
D | atomicops_internals_atomicword_compat.h | 25 namespace subtle { 55 return base::subtle::Acquire_CompareAndSwap( in Acquire_CompareAndSwap() 62 return base::subtle::Release_CompareAndSwap( in Release_CompareAndSwap() 72 return base::subtle::Acquire_Store( in Acquire_Store() 77 return base::subtle::Release_Store( in Release_Store() 87 return base::subtle::Acquire_Load( in Acquire_Load() 92 return base::subtle::Release_Load( in Release_Load()
|
D | atomic_ref_count.h | 20 typedef subtle::Atomic32 AtomicRefCount; 25 subtle::NoBarrier_AtomicIncrement(ptr, increment); in AtomicRefCountIncN() 35 bool res = (subtle::Barrier_AtomicIncrement(ptr, -decrement) != 0); in AtomicRefCountDecN() 61 bool res = (subtle::Acquire_Load(ptr) == 1); in AtomicRefCountIsOne() 72 bool res = (subtle::Acquire_Load(ptr) == 0); in AtomicRefCountIsZero()
|
D | lazy_instance.cc | 18 if (base::subtle::Acquire_CompareAndSwap( in NeedsInstance() 24 while (base::subtle::NoBarrier_Load(&state_) != STATE_CREATED) in NeedsInstance() 37 base::subtle::Release_Store(&state_, STATE_CREATED); in CompleteInstance()
|
D | lazy_instance.h | 105 base::subtle::Atomic32 state_; 127 if ((base::subtle::NoBarrier_Load(&state_) != STATE_CREATED) && in Pointer() 146 switch (base::subtle::NoBarrier_Load(&state_)) { 167 base::subtle::Release_Store(&me->state_, STATE_EMPTY); in OnExit()
|
D | atomic_sequence_num.h | 21 base::subtle::NoBarrier_AtomicIncrement(&seq_, 1) - 1); in GetNext() 25 base::subtle::Atomic32 seq_;
|
/external/chromium/base/threading/ |
D | thread_collision_warner.cc | 16 static subtle::Atomic32 CurrentThread() { in CurrentThread() 21 const subtle::Atomic32 atomic_thread_id = in CurrentThread() 22 static_cast<subtle::Atomic32>(current_thread_id); in CurrentThread() 31 subtle::Atomic32 current_thread_id = CurrentThread(); in EnterSelf() 33 int previous_value = subtle::NoBarrier_CompareAndSwap(&valid_thread_id_, in EnterSelf() 42 subtle::NoBarrier_AtomicIncrement(&counter_, 1); in EnterSelf() 46 subtle::Atomic32 current_thread_id = CurrentThread(); in Enter() 48 if (subtle::NoBarrier_CompareAndSwap(&valid_thread_id_, in Enter() 55 subtle::NoBarrier_AtomicIncrement(&counter_, 1); in Enter() 59 if (subtle::Barrier_AtomicIncrement(&counter_, -1) == 0) { in Leave() [all …]
|
D | thread_collision_warner.h | 229 volatile subtle::Atomic32 valid_thread_id_; 233 volatile subtle::Atomic32 counter_;
|
/external/chromium/base/memory/ |
D | singleton.h | 79 if (base::subtle::NoBarrier_AtomicExchange(&dead_, 1)) in New() 89 base::subtle::NoBarrier_Store(&dead_, 1); in Delete() 90 base::subtle::MemoryBarrier(); in Delete() 100 base::subtle::NoBarrier_Store(&dead_, 0); in Resurrect() 109 static base::subtle::Atomic32 dead_; 114 template <typename Type> base::subtle::Atomic32 204 static const base::subtle::AtomicWord kBeingCreatedMarker = 1; in get() 206 base::subtle::AtomicWord value = base::subtle::NoBarrier_Load(&instance_); in get() 214 if (base::subtle::Acquire_CompareAndSwap(&instance_, in get() 226 base::subtle::Release_Store( in get() [all …]
|
D | ref_counted.h | 15 namespace subtle { 84 class RefCounted : public subtle::RefCountedBase { 90 subtle::RefCountedBase::AddRef(); in AddRef() 94 if (subtle::RefCountedBase::Release()) { in Release() 132 class RefCountedThreadSafe : public subtle::RefCountedThreadSafeBase { 138 subtle::RefCountedThreadSafeBase::AddRef(); in AddRef() 142 if (subtle::RefCountedThreadSafeBase::Release()) { in Release()
|
D | raw_scoped_refptr_mismatch_checker.h | 39 (is_convertible<T, subtle::RefCountedBase*>::value || 40 is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
|
D | ref_counted.cc | 12 namespace subtle { namespace
|
/external/chromium/base/allocator/ |
D | allocator_unittests.cc | 109 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 1), 1); in TestAtomicIncrement() 114 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 2), 3); in TestAtomicIncrement() 119 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 3), 6); in TestAtomicIncrement() 124 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -3), 3); in TestAtomicIncrement() 129 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -2), 1); in TestAtomicIncrement() 134 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), 0); in TestAtomicIncrement() 139 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), -1); in TestAtomicIncrement() 144 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -4), -5); in TestAtomicIncrement() 149 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 5), 0); in TestAtomicIncrement() 162 AtomicType prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 1); in TestCompareAndSwap() [all …]
|
/external/chromium/base/win/ |
D | wrapped_window_proc.cc | 20 subtle::AtomicWord rv = subtle::NoBarrier_AtomicExchange( in SetWinProcExceptionFilter() 21 reinterpret_cast<subtle::AtomicWord*>(&s_exception_filter), in SetWinProcExceptionFilter() 22 reinterpret_cast<subtle::AtomicWord>(filter)); in SetWinProcExceptionFilter()
|
/external/chromium/chrome/browser/prefs/ |
D | pref_member.h | 39 namespace subtle { 131 class PrefMember : public subtle::PrefMemberBase { 143 subtle::PrefMemberBase::Init(pref_name, prefs, observer); in Init() 150 subtle::PrefMemberBase::Destroy(); in Destroy() 159 subtle::PrefMemberBase::MoveToThread(thread_id); in MoveToThread() 208 class Internal : public subtle::PrefMemberBase::Internal {
|
D | scoped_user_pref_update.h | 24 namespace subtle { 65 class ScopedUserPrefUpdate : public subtle::ScopedUserPrefUpdateBase { 84 subtle::ScopedUserPrefUpdateBase::Get(type_enum_value)); in Get()
|
D | pref_service.h | 31 namespace subtle { 290 friend class subtle::PrefMemberBase; 293 friend class subtle::ScopedUserPrefUpdateBase;
|
D | scoped_user_pref_update.cc | 11 namespace subtle { namespace
|
/external/chromium/base/synchronization/ |
D | cancellation_flag.cc | 15 base::subtle::Release_Store(&flag_, 1); in Set() 19 return base::subtle::Acquire_Load(&flag_) != 0; in IsSet()
|
D | cancellation_flag.h | 34 base::subtle::Atomic32 flag_;
|
/external/chromium/chrome/browser/net/ |
D | chrome_net_log.cc | 97 return base::subtle::NoBarrier_AtomicIncrement(&last_id_, 1); in NextID() 101 base::subtle::Atomic32 log_level = base::subtle::NoBarrier_Load(&log_level_); in GetLogLevel() 146 base::subtle::NoBarrier_Store(&log_level_, new_log_level); in UpdateLogLevel_()
|
D | chrome_net_log.h | 148 base::subtle::Atomic32 last_id_; 150 base::subtle::Atomic32 log_level_;
|
/external/chromium/chrome/browser/sync/engine/net/ |
D | server_connection_manager.h | 157 base::subtle::AtomicWord reset_count_; 379 volatile base::subtle::AtomicWord reset_count_;
|
D | server_connection_manager.cc | 204 base::subtle::AtomicWord start_reset_count = reset_count_ - 1; in CheckTime() 265 base::subtle::NoBarrier_AtomicIncrement(&reset_count_, 1); in ResetConnection()
|
/external/chromium/net/base/ |
D | capturing_net_log.h | 71 base::subtle::Atomic32 last_id_;
|