Home
last modified time | relevance | path

Searched refs:subtle (Results 1 – 25 of 95) sorted by relevance

1234

/external/chromium/base/
Datomicops_unittest.cc35 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 …]
Datomicops_internals_atomicword_compat.h25 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()
Datomic_ref_count.h20 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()
Dlazy_instance.cc18 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()
Dlazy_instance.h105 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()
Datomic_sequence_num.h21 base::subtle::NoBarrier_AtomicIncrement(&seq_, 1) - 1); in GetNext()
25 base::subtle::Atomic32 seq_;
/external/chromium/base/threading/
Dthread_collision_warner.cc16 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 …]
Dthread_collision_warner.h229 volatile subtle::Atomic32 valid_thread_id_;
233 volatile subtle::Atomic32 counter_;
/external/chromium/base/memory/
Dsingleton.h79 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 …]
Dref_counted.h15 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()
Draw_scoped_refptr_mismatch_checker.h39 (is_convertible<T, subtle::RefCountedBase*>::value ||
40 is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
Dref_counted.cc12 namespace subtle { namespace
/external/chromium/base/allocator/
Dallocator_unittests.cc109 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/
Dwrapped_window_proc.cc20 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/
Dpref_member.h39 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 {
Dscoped_user_pref_update.h24 namespace subtle {
65 class ScopedUserPrefUpdate : public subtle::ScopedUserPrefUpdateBase {
84 subtle::ScopedUserPrefUpdateBase::Get(type_enum_value)); in Get()
Dpref_service.h31 namespace subtle {
290 friend class subtle::PrefMemberBase;
293 friend class subtle::ScopedUserPrefUpdateBase;
Dscoped_user_pref_update.cc11 namespace subtle { namespace
/external/chromium/base/synchronization/
Dcancellation_flag.cc15 base::subtle::Release_Store(&flag_, 1); in Set()
19 return base::subtle::Acquire_Load(&flag_) != 0; in IsSet()
Dcancellation_flag.h34 base::subtle::Atomic32 flag_;
/external/chromium/chrome/browser/net/
Dchrome_net_log.cc97 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_()
Dchrome_net_log.h148 base::subtle::Atomic32 last_id_;
150 base::subtle::Atomic32 log_level_;
/external/chromium/chrome/browser/sync/engine/net/
Dserver_connection_manager.h157 base::subtle::AtomicWord reset_count_;
379 volatile base::subtle::AtomicWord reset_count_;
Dserver_connection_manager.cc204 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/
Dcapturing_net_log.h71 base::subtle::Atomic32 last_id_;

1234