/external/chromium_org/gpu/command_buffer/common/ |
command_buffer_shared.h | 18 base::subtle::Atomic32 reading_; 19 base::subtle::Atomic32 latest_; 20 base::subtle::Atomic32 slots_[2]; 30 base::subtle::NoBarrier_Store(&reading_, 0); 31 base::subtle::NoBarrier_Store(&latest_, 0); 32 base::subtle::NoBarrier_Store(&slots_[0], 0); 33 base::subtle::Release_Store(&slots_[1], 0); 34 base::subtle::MemoryBarrier(); 38 int towrite = !base::subtle::Acquire_Load(&reading_); 39 int index = !base::subtle::Acquire_Load(&slots_[towrite]) [all...] |
/external/chromium/base/win/ |
wrapped_window_proc.cc | 20 subtle::AtomicWord rv = subtle::NoBarrier_AtomicExchange( 21 reinterpret_cast<subtle::AtomicWord*>(&s_exception_filter), 22 reinterpret_cast<subtle::AtomicWord>(filter));
|
/external/chromium/base/threading/ |
thread_collision_warner.cc | 16 static subtle::Atomic32 CurrentThread() { 21 const subtle::Atomic32 atomic_thread_id = 22 static_cast<subtle::Atomic32>(current_thread_id); 31 subtle::Atomic32 current_thread_id = CurrentThread(); 33 int previous_value = subtle::NoBarrier_CompareAndSwap(&valid_thread_id_, 42 subtle::NoBarrier_AtomicIncrement(&counter_, 1); 46 subtle::Atomic32 current_thread_id = CurrentThread(); 48 if (subtle::NoBarrier_CompareAndSwap(&valid_thread_id_, 55 subtle::NoBarrier_AtomicIncrement(&counter_, 1); 59 if (subtle::Barrier_AtomicIncrement(&counter_, -1) == 0) [all...] |
/external/chromium_org/base/threading/ |
thread_collision_warner.cc | 16 static subtle::Atomic32 CurrentThread() { 21 const subtle::Atomic32 atomic_thread_id = 22 static_cast<subtle::Atomic32>(current_thread_id); 31 subtle::Atomic32 current_thread_id = CurrentThread(); 33 int previous_value = subtle::NoBarrier_CompareAndSwap(&valid_thread_id_, 42 subtle::NoBarrier_AtomicIncrement(&counter_, 1); 46 subtle::Atomic32 current_thread_id = CurrentThread(); 48 if (subtle::NoBarrier_CompareAndSwap(&valid_thread_id_, 55 subtle::NoBarrier_AtomicIncrement(&counter_, 1); 59 if (subtle::Barrier_AtomicIncrement(&counter_, -1) == 0) [all...] |
/external/chromium/base/ |
atomicops_unittest.cc | 35 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 1), 1); 40 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 2), 3); 45 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 3), 6); 50 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -3), 3); 55 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -2), 1); 60 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), 0); 65 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), -1); 70 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -4), -5); 75 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 5), 0); 88 AtomicType prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 1) [all...] |
atomic_sequence_num.h | 21 base::subtle::NoBarrier_AtomicIncrement(&seq_, 1) - 1); 25 base::subtle::Atomic32 seq_;
|
atomicops_internals_atomicword_compat.h | 25 namespace subtle { namespace in namespace:base 55 return base::subtle::Acquire_CompareAndSwap( 62 return base::subtle::Release_CompareAndSwap( 72 return base::subtle::Acquire_Store( 77 return base::subtle::Release_Store( 87 return base::subtle::Acquire_Load( 92 return base::subtle::Release_Load( 96 } // namespace base::subtle
|
/external/chromium_org/base/ |
atomicops_unittest.cc | 35 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 1), 1); 40 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 2), 3); 45 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 3), 6); 50 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -3), 3); 55 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -2), 1); 60 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), 0); 65 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), -1); 70 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -4), -5); 75 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 5), 0); 88 AtomicType prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 1) [all...] |
lazy_instance.cc | 18 bool NeedsLazyInstance(subtle::AtomicWord* state) { 24 if (subtle::NoBarrier_CompareAndSwap(state, 0, 34 while (subtle::Acquire_Load(state) == kLazyInstanceStateCreating) { 41 void CompleteLazyInstance(subtle::AtomicWord* state, 42 subtle::AtomicWord new_instance, 51 subtle::Release_Store(state, new_instance);
|
atomicops_internals_atomicword_compat.h | 24 namespace subtle { namespace in namespace:base 54 return base::subtle::Acquire_CompareAndSwap( 61 return base::subtle::Release_CompareAndSwap( 71 return base::subtle::Acquire_Store( 76 return base::subtle::Release_Store( 86 return base::subtle::Acquire_Load( 91 return base::subtle::Release_Load( 95 } // namespace base::subtle
|
/external/chromium_org/content/common/ |
one_writer_seqlock.cc | 13 base::subtle::Atomic32 OneWriterSeqLock::ReadBegin() { 14 base::subtle::Atomic32 version; 16 version = base::subtle::NoBarrier_Load(&sequence_); 29 bool OneWriterSeqLock::ReadRetry(base::subtle::Atomic32 version) { 32 return base::subtle::Release_Load(&sequence_) != version; 38 base::subtle::Barrier_AtomicIncrement(&sequence_, 1); 46 base::subtle::Barrier_AtomicIncrement(&sequence_, 1);
|
/external/chromium_org/media/base/ |
keyboard_event_counter.cc | 18 base::subtle::NoBarrier_Store( 19 reinterpret_cast<base::subtle::AtomicWord*>(&total_key_presses_), 0); 29 base::subtle::NoBarrier_AtomicIncrement( 30 reinterpret_cast<base::subtle::AtomicWord*>(&total_key_presses_), 1); 38 return base::subtle::NoBarrier_Load( 39 reinterpret_cast<const base::subtle::AtomicWord*>(&total_key_presses_));
|
/external/chromium/base/synchronization/ |
cancellation_flag.cc | 15 base::subtle::Release_Store(&flag_, 1); 19 return base::subtle::Acquire_Load(&flag_) != 0;
|
/external/chromium_org/base/synchronization/ |
cancellation_flag.cc | 15 base::subtle::Release_Store(&flag_, 1); 19 return base::subtle::Acquire_Load(&flag_) != 0;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
atomicops_unittest.cc | 63 ASSERT_EQ(1, base::subtle::NoBarrier_AtomicIncrement(&s.count, 1)); 68 ASSERT_EQ(3, base::subtle::NoBarrier_AtomicIncrement(&s.count, 2)); 73 ASSERT_EQ(6, base::subtle::NoBarrier_AtomicIncrement(&s.count, 3)); 78 ASSERT_EQ(3, base::subtle::NoBarrier_AtomicIncrement(&s.count, -3)); 83 ASSERT_EQ(1, base::subtle::NoBarrier_AtomicIncrement(&s.count, -2)); 88 ASSERT_EQ(0, base::subtle::NoBarrier_AtomicIncrement(&s.count, -1)); 93 ASSERT_EQ(-1, base::subtle::NoBarrier_AtomicIncrement(&s.count, -1)); 98 ASSERT_EQ(-5, base::subtle::NoBarrier_AtomicIncrement(&s.count, -4)); 103 ASSERT_EQ(0, base::subtle::NoBarrier_AtomicIncrement(&s.count, 5)); 116 AtomicType prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 1) [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
atomicops_unittest.cc | 63 ASSERT_EQ(1, base::subtle::NoBarrier_AtomicIncrement(&s.count, 1)); 68 ASSERT_EQ(3, base::subtle::NoBarrier_AtomicIncrement(&s.count, 2)); 73 ASSERT_EQ(6, base::subtle::NoBarrier_AtomicIncrement(&s.count, 3)); 78 ASSERT_EQ(3, base::subtle::NoBarrier_AtomicIncrement(&s.count, -3)); 83 ASSERT_EQ(1, base::subtle::NoBarrier_AtomicIncrement(&s.count, -2)); 88 ASSERT_EQ(0, base::subtle::NoBarrier_AtomicIncrement(&s.count, -1)); 93 ASSERT_EQ(-1, base::subtle::NoBarrier_AtomicIncrement(&s.count, -1)); 98 ASSERT_EQ(-5, base::subtle::NoBarrier_AtomicIncrement(&s.count, -4)); 103 ASSERT_EQ(0, base::subtle::NoBarrier_AtomicIncrement(&s.count, 5)); 116 AtomicType prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 1) [all...] |
/external/chromium_org/base/memory/ |
singleton.cc | 11 subtle::AtomicWord WaitForInstance(subtle::AtomicWord* instance) { 19 subtle::AtomicWord value; 21 value = subtle::NoBarrier_Load(instance);
|
/external/chromium_org/base/win/ |
wrapped_window_proc.cc | 22 subtle::AtomicWord rv = subtle::NoBarrier_AtomicExchange( 23 reinterpret_cast<subtle::AtomicWord*>(&s_exception_filter), 24 reinterpret_cast<subtle::AtomicWord>(filter));
|
/external/chromium_org/content/browser/renderer_host/java/ |
jni_helper.cc | 43 const base::subtle::AtomicWord kUnlocked = 0; 44 const base::subtle::AtomicWord kLocked = 1; 45 base::subtle::AtomicWord g_method_id_map_lock = kUnlocked; 63 while (base::subtle::Acquire_CompareAndSwap(&g_method_id_map_lock, 72 base::subtle::Release_Store(&g_method_id_map_lock, kUnlocked); 85 while (base::subtle::Acquire_CompareAndSwap(&g_method_id_map_lock, 94 base::subtle::Release_Store(&g_method_id_map_lock, kUnlocked);
|
/external/chromium_org/third_party/leveldatabase/port/ |
port_chromium.h | 68 typedef base::subtle::AtomicWord Rep; 74 return reinterpret_cast<void*>(::base::subtle::Acquire_Load(&rep_)); 77 ::base::subtle::Release_Store(&rep_, reinterpret_cast<Rep>(v)); 80 return reinterpret_cast<void*>(::base::subtle::NoBarrier_Load(&rep_)); 83 ::base::subtle::NoBarrier_Store(&rep_, reinterpret_cast<Rep>(v)); 89 typedef ::base::subtle::Atomic32 OnceType; 103 if (::base::subtle::Acquire_Load(once) != ONCE_STATE_DONE)
|
/external/chromium/chrome/browser/prefs/ |
scoped_user_pref_update.cc | 11 namespace subtle { namespace 36 } // namespace subtle
|
/external/chromium_org/base/prefs/ |
scoped_user_pref_update.cc | 11 namespace subtle { namespace 36 } // namespace subtle
|
/external/chromium_org/ppapi/proxy/ |
gamepad_resource.cc | 21 base::subtle::Atomic32 ReadBegin(const base::subtle::Atomic32* sequence) { 22 base::subtle::Atomic32 version; 24 version = base::subtle::NoBarrier_Load(sequence); 37 bool ReadRetry(const base::subtle::Atomic32* sequence, 38 base::subtle::Atomic32 version) { 41 return base::subtle::Release_Load(sequence) != version; 85 base::subtle::Atomic32 version;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
atomicops.h | 42 // The routines exported by this module are subtle. If you use them, even if 59 // to use these. Moreover, if you choose to use base::subtle::Atomic64 type, 64 // base::subtle 82 // # define AtomicWordCastType base::subtle::Atomic64 124 namespace subtle { namespace in namespace:base 181 return base::subtle::Acquire_CompareAndSwap( 189 return base::subtle::Release_CompareAndSwap( 200 return base::subtle::Acquire_Store( 205 return base::subtle::Release_Store( 215 return base::subtle::Acquire_Load [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
atomicops.h | 42 // The routines exported by this module are subtle. If you use them, even if 59 // to use these. Moreover, if you choose to use base::subtle::Atomic64 type, 64 // base::subtle 82 // # define AtomicWordCastType base::subtle::Atomic64 124 namespace subtle { namespace in namespace:base 181 return base::subtle::Acquire_CompareAndSwap( 189 return base::subtle::Release_CompareAndSwap( 200 return base::subtle::Acquire_Store( 205 return base::subtle::Release_Store( 215 return base::subtle::Acquire_Load [all...] |