Home
last modified time | relevance | path

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

1234567

/external/libchrome/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 …]
Dlazy_instance.h109 static const subtle::AtomicWord kLazyInstanceStateCreating = 1;
114 BASE_EXPORT bool NeedsLazyInstance(subtle::AtomicWord* state);
118 BASE_EXPORT void CompleteLazyInstance(subtle::AtomicWord* state,
119 subtle::AtomicWord new_instance,
151 static const subtle::AtomicWord kLazyInstanceCreatedMask = in Pointer()
161 subtle::AtomicWord value = subtle::Acquire_Load(&private_instance_); in Pointer()
165 value = reinterpret_cast<subtle::AtomicWord>( in Pointer()
174 switch (subtle::NoBarrier_Load(&private_instance_)) {
188 subtle::AtomicWord private_instance_;
194 return reinterpret_cast<Type*>(subtle::NoBarrier_Load(&private_instance_)); in instance()
[all …]
Dtracked_objects.h335 int count() const { return base::subtle::NoBarrier_Load(&count_); } in count()
337 return base::subtle::NoBarrier_Load(&run_duration_sum_); in run_duration_sum()
340 return base::subtle::NoBarrier_Load(&run_duration_max_); in run_duration_max()
343 return base::subtle::NoBarrier_Load(&run_duration_sample_); in run_duration_sample()
346 return base::subtle::NoBarrier_Load(&queue_duration_sum_); in queue_duration_sum()
349 return base::subtle::NoBarrier_Load(&queue_duration_max_); in queue_duration_max()
352 return base::subtle::NoBarrier_Load(&queue_duration_sample_); in queue_duration_sample()
368 base::subtle::Atomic32 count_;
374 base::subtle::Atomic32 sample_probability_count_;
378 base::subtle::Atomic32 run_duration_sum_;
[all …]
Dlazy_instance.cc16 bool NeedsLazyInstance(subtle::AtomicWord* state) { in NeedsLazyInstance()
22 if (subtle::NoBarrier_CompareAndSwap(state, 0, in NeedsLazyInstance()
32 while (subtle::Acquire_Load(state) == kLazyInstanceStateCreating) { in NeedsLazyInstance()
39 void CompleteLazyInstance(subtle::AtomicWord* state, in CompleteLazyInstance()
40 subtle::AtomicWord new_instance, in CompleteLazyInstance()
46 subtle::Release_Store(state, new_instance); in CompleteLazyInstance()
Dtracked_objects.cc48 base::subtle::Atomic32 g_profiler_timing_enabled = UNDEFINED_TIMING;
60 base::subtle::Atomic32 current_timing_enabled = in IsProfilerTimingEnabled()
61 base::subtle::NoBarrier_Load(&g_profiler_timing_enabled); in IsProfilerTimingEnabled()
71 base::subtle::NoBarrier_Store(&g_profiler_timing_enabled, in IsProfilerTimingEnabled()
133 base::subtle::NoBarrier_Store(&count_, count_ + 1); in RecordDeath()
136 base::subtle::NoBarrier_Load(&sample_probability_count_); in RecordDeath()
139 base::subtle::NoBarrier_Store(&sample_probability_count_, in RecordDeath()
142 base::subtle::NoBarrier_Store(&queue_duration_sum_, in RecordDeath()
144 base::subtle::NoBarrier_Store(&run_duration_sum_, in RecordDeath()
148 base::subtle::NoBarrier_Store(&queue_duration_max_, queue_duration); in RecordDeath()
[all …]
Datomicops_internals_atomicword_compat.h28 namespace subtle {
58 return base::subtle::Acquire_CompareAndSwap( in Acquire_CompareAndSwap()
65 return base::subtle::Release_CompareAndSwap( in Release_CompareAndSwap()
75 return base::subtle::Acquire_Store( in Acquire_Store()
80 return base::subtle::Release_Store( in Release_Store()
90 return base::subtle::Acquire_Load( in Acquire_Load()
95 return base::subtle::Release_Load( in Release_Load()
Datomic_ref_count.h15 typedef subtle::Atomic32 AtomicRefCount;
20 subtle::NoBarrier_AtomicIncrement(ptr, increment); in AtomicRefCountIncN()
29 bool res = (subtle::Barrier_AtomicIncrement(ptr, -decrement) != 0); in AtomicRefCountDecN()
52 bool res = (subtle::Acquire_Load(ptr) == 1); in AtomicRefCountIsOne()
60 bool res = (subtle::Acquire_Load(ptr) == 0); in AtomicRefCountIsZero()
Dsequenced_task_runner.h126 subtle::DeleteHelperInternal<T, bool>::DeleteViaSequencedTaskRunner( in DeleteSoon()
137 subtle::ReleaseHelperInternal<T, bool>::ReleaseViaSequencedTaskRunner( in ReleaseSoon()
145 template <class T, class R> friend class subtle::DeleteHelperInternal;
146 template <class T, class R> friend class subtle::ReleaseHelperInternal;
Dsequenced_task_runner_helpers.h21 namespace subtle {
37 template <class T2, class R> friend class subtle::DeleteHelperInternal;
49 template <class T2, class R> friend class subtle::ReleaseHelperInternal;
58 namespace subtle {
Datomic_sequence_num.h26 base::subtle::NoBarrier_AtomicIncrement(&seq_, 1) - 1); in GetNext()
33 base::subtle::Release_Store(&seq_, 0); in Reset()
36 base::subtle::Atomic32 seq_;
/external/libchrome/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_local_storage.cc22 base::subtle::Atomic32 g_native_tls_key =
32 base::subtle::Atomic32 g_last_used_tls_key = 0;
61 base::subtle::NoBarrier_Load(&g_native_tls_key); in ConstructTlsVector()
81 base::subtle::NoBarrier_CompareAndSwap( in ConstructTlsVector()
88 key = base::subtle::NoBarrier_Load(&g_native_tls_key); in ConstructTlsVector()
129 base::subtle::NoBarrier_Load(&g_native_tls_key); in OnThreadExitInternal()
143 base::subtle::Atomic32 last_used_tls_key = in OnThreadExitInternal()
144 base::subtle::NoBarrier_Load(&g_last_used_tls_key); in OnThreadExitInternal()
180 base::subtle::NoBarrier_Load(&g_native_tls_key); in OnThreadExit()
199 base::subtle::Release_Store(&initialized_, 0); in Slot()
[all …]
/external/libchrome/base/memory/
Dsingleton.h34 static const subtle::AtomicWord kBeingCreatedMarker = 1;
38 BASE_EXPORT subtle::AtomicWord WaitForInstance(subtle::AtomicWord* instance);
114 if (subtle::NoBarrier_AtomicExchange(&dead_, 1)) in New()
129 static void Resurrect() { subtle::NoBarrier_Store(&dead_, 0); } in Resurrect()
134 static subtle::Atomic32 dead_;
141 subtle::Atomic32 StaticMemorySingletonTraits<Type>::dead_ = 0;
238 subtle::AtomicWord value = subtle::Acquire_Load(&instance_); in get()
244 if (subtle::Acquire_CompareAndSwap(&instance_, 0, in get()
252 subtle::Release_Store(&instance_, in get()
253 reinterpret_cast<subtle::AtomicWord>(newval)); in get()
[all …]
Dsingleton.cc11 subtle::AtomicWord WaitForInstance(subtle::AtomicWord* instance) { in WaitForInstance()
19 subtle::AtomicWord value; in WaitForInstance()
24 value = subtle::Acquire_Load(instance); in WaitForInstance()
/external/libchrome/base/allocator/
Dallocator_shim.cc27 subtle::AtomicWord g_chain_head = reinterpret_cast<subtle::AtomicWord>(
31 subtle::Atomic32 g_new_handler_lock = 0;
36 using subtle::Atomic32; in CalledOnValidThread()
41 subtle::NoBarrier_CompareAndSwap(&g_tid, kInvalidTID, cur_tid); in CalledOnValidThread()
60 while (subtle::Acquire_CompareAndSwap(&g_new_handler_lock, 0, 1)) in CallNewHandler()
64 subtle::Release_Store(&g_new_handler_lock, 0); in CallNewHandler()
80 *static_cast<const volatile subtle::AtomicWord*>(&g_chain_head) in GetChainHead()
82 subtle::NoBarrier_Load(&g_chain_head) in GetChainHead()
113 subtle::MemoryBarrier(); in InsertAllocatorDispatch()
115 subtle::NoBarrier_Store(&g_chain_head, in InsertAllocatorDispatch()
[all …]
/external/libmojo/base/android/
Djni_android.cc131 base::subtle::AtomicWord* atomic_class_id) { in LazyGetClass()
132 static_assert(sizeof(subtle::AtomicWord) >= sizeof(jclass), in LazyGetClass()
134 subtle::AtomicWord value = base::subtle::Acquire_Load(atomic_class_id); in LazyGetClass()
139 subtle::AtomicWord null_aw = reinterpret_cast<subtle::AtomicWord>(NULL); in LazyGetClass()
140 subtle::AtomicWord cas_result = base::subtle::Release_CompareAndSwap( in LazyGetClass()
143 reinterpret_cast<subtle::AtomicWord>(clazz.obj())); in LazyGetClass()
177 base::subtle::AtomicWord* atomic_method_id) { in LazyGet()
178 static_assert(sizeof(subtle::AtomicWord) >= sizeof(jmethodID), in LazyGet()
180 subtle::AtomicWord value = base::subtle::Acquire_Load(atomic_method_id); in LazyGet()
184 base::subtle::Release_Store( in LazyGet()
[all …]
/external/libchrome/base/trace_event/
Dtrace_event_synthetic_delay.cc37 subtle::Atomic32 delay_count_;
160 int delay_count = subtle::Acquire_Load(&delay_count_); in GetOrCreateDelay()
167 delay_count = subtle::Acquire_Load(&delay_count_); in GetOrCreateDelay()
179 subtle::Release_Store(&delay_count_, delay_count + 1); in GetOrCreateDelay()
189 int delay_count = subtle::Acquire_Load(&delay_count_); in ResetAllDelays()
206 base::subtle::AtomicWord* impl_ptr) in ScopedSyntheticDelay()
217 base::subtle::AtomicWord* impl_ptr) { in GetOrCreateDelay()
220 base::subtle::Acquire_Load(impl_ptr)); in GetOrCreateDelay()
225 base::subtle::Release_Store( in GetOrCreateDelay()
226 impl_ptr, reinterpret_cast<base::subtle::AtomicWord>(delay_impl)); in GetOrCreateDelay()
Dtrace_event_synthetic_delay.h43 static base::subtle::AtomicWord INTERNAL_TRACE_EVENT_UID(impl_ptr) = 0; \
52 static base::subtle::AtomicWord impl_ptr = 0; \
61 static base::subtle::AtomicWord impl_ptr = 0; \
151 base::subtle::AtomicWord* impl_ptr);
163 GetOrCreateDelay(const char* name, base::subtle::AtomicWord* impl_ptr);
/external/libmojo/base/android/jni_generator/
DtestConstantsFromJavaP.golden115 static base::subtle::AtomicWord g_MotionEvent_finalize = 0;
136 static base::subtle::AtomicWord
190 static base::subtle::AtomicWord
241 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I
288 static base::subtle::AtomicWord
337 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_I = 0;
370 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_AVME = 0;
393 static base::subtle::AtomicWord g_MotionEvent_obtainNoHistory = 0;
416 static base::subtle::AtomicWord g_MotionEvent_recycle = 0;
437 static base::subtle::AtomicWord g_MotionEvent_getDeviceId = 0;
[all …]
DtestCalledByNatives.golden34 static base::subtle::AtomicWord g_TestJni_showConfirmInfoBar = 0;
68 static base::subtle::AtomicWord g_TestJni_showAutoLoginInfoBar = 0;
99 static base::subtle::AtomicWord g_InfoBar_dismiss = 0;
121 static base::subtle::AtomicWord g_TestJni_shouldShowAutoLogin = 0;
151 static base::subtle::AtomicWord g_TestJni_openUrl = 0;
176 static base::subtle::AtomicWord g_TestJni_activateHardwareAcceleration = 0;
209 static base::subtle::AtomicWord g_TestJni_uncheckedCall = 0;
232 static base::subtle::AtomicWord g_TestJni_returnByteArray = 0;
256 static base::subtle::AtomicWord g_TestJni_returnBooleanArray = 0;
280 static base::subtle::AtomicWord g_TestJni_returnCharArray = 0;
[all …]
DtestFromJavaP.golden32 static base::subtle::AtomicWord g_InputStream_available = 0;
54 static base::subtle::AtomicWord g_InputStream_close = 0;
75 static base::subtle::AtomicWord g_InputStream_mark = 0;
96 static base::subtle::AtomicWord g_InputStream_markSupported = 0;
118 static base::subtle::AtomicWord g_InputStream_readI = 0;
140 static base::subtle::AtomicWord g_InputStream_readI_AB = 0;
162 static base::subtle::AtomicWord g_InputStream_readI_AB_I_I = 0;
189 static base::subtle::AtomicWord g_InputStream_reset = 0;
210 static base::subtle::AtomicWord g_InputStream_skip = 0;
232 static base::subtle::AtomicWord g_InputStream_Constructor = 0;
/external/libchrome/base/metrics/
Dsample_vector.cc44 subtle::NoBarrier_AtomicIncrement(&counts_[bucket_index], count); in Accumulate()
51 return subtle::NoBarrier_Load(&counts_[bucket_index]); in GetCount()
57 count += subtle::NoBarrier_Load(&counts_[i]); in TotalCount()
64 return subtle::NoBarrier_Load(&counts_[bucket_index]); in GetCountAtIndex()
85 subtle::NoBarrier_AtomicIncrement( in AddSubtractImpl()
172 *count = subtle::NoBarrier_Load(&counts_[index_]); in Get()
187 if (subtle::NoBarrier_Load(&counts_[index_]) != 0) in SkipEmptyBuckets()
Dhistogram_samples.cc87 subtle::NoBarrier_AtomicIncrement(&meta_->redundant_count, in Add()
101 subtle::NoBarrier_AtomicIncrement(&meta_->redundant_count, in AddFromPickle()
110 subtle::NoBarrier_AtomicIncrement(&meta_->redundant_count, in Subtract()
138 subtle::NoBarrier_AtomicIncrement(&meta_->sum, diff); in IncreaseSum()
145 subtle::NoBarrier_AtomicIncrement(&meta_->redundant_count, diff); in IncreaseRedundantCount()
/external/libchrome/base/synchronization/
Dcancellation_flag.cc15 base::subtle::Release_Store(&flag_, 1); in Set()
19 return base::subtle::Acquire_Load(&flag_) != 0; in IsSet()
23 base::subtle::Release_Store(&flag_, 0); in UnsafeResetForTesting()
/external/libmojo/mojo/edk/system/
Datomic_flag.h39 base::subtle::Release_Store(&flag_, value ? 1 : 0); in Set()
43 return base::subtle::Acquire_Load(&flag_) ? true : false; in Get()
49 base::subtle::Atomic32 flag_;

1234567