Home
last modified time | relevance | path

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

12345

/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.h108 static const subtle::AtomicWord kLazyInstanceStateCreating = 1;
113 BASE_EXPORT bool NeedsLazyInstance(subtle::AtomicWord* state);
117 BASE_EXPORT void CompleteLazyInstance(subtle::AtomicWord* state,
118 subtle::AtomicWord new_instance,
150 static const subtle::AtomicWord kLazyInstanceCreatedMask = in Pointer()
160 subtle::AtomicWord value = subtle::Acquire_Load(&private_instance_); in Pointer()
164 value = reinterpret_cast<subtle::AtomicWord>( in Pointer()
173 switch (subtle::NoBarrier_Load(&private_instance_)) {
187 subtle::AtomicWord private_instance_;
193 return reinterpret_cast<Type*>(subtle::NoBarrier_Load(&private_instance_)); in instance()
[all …]
Dtracked_objects.h336 int count() const { return base::subtle::NoBarrier_Load(&count_); } in count()
338 return base::subtle::NoBarrier_Load(&run_duration_sum_); in run_duration_sum()
341 return base::subtle::NoBarrier_Load(&run_duration_max_); in run_duration_max()
344 return base::subtle::NoBarrier_Load(&run_duration_sample_); in run_duration_sample()
347 return base::subtle::NoBarrier_Load(&queue_duration_sum_); in queue_duration_sum()
350 return base::subtle::NoBarrier_Load(&queue_duration_max_); in queue_duration_max()
353 return base::subtle::NoBarrier_Load(&queue_duration_sample_); in queue_duration_sample()
369 base::subtle::Atomic32 count_;
375 base::subtle::Atomic32 sample_probability_count_;
379 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.cc56 base::subtle::Atomic32 g_profiler_timing_enabled = UNDEFINED_TIMING;
68 base::subtle::Atomic32 current_timing_enabled = in IsProfilerTimingEnabled()
69 base::subtle::NoBarrier_Load(&g_profiler_timing_enabled); in IsProfilerTimingEnabled()
79 base::subtle::NoBarrier_Store(&g_profiler_timing_enabled, in IsProfilerTimingEnabled()
141 base::subtle::NoBarrier_Store(&count_, count_ + 1); in RecordDeath()
144 base::subtle::NoBarrier_Load(&sample_probability_count_); in RecordDeath()
147 base::subtle::NoBarrier_Store(&sample_probability_count_, in RecordDeath()
150 base::subtle::NoBarrier_Store(&queue_duration_sum_, in RecordDeath()
152 base::subtle::NoBarrier_Store(&run_duration_sum_, in RecordDeath()
156 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()
Dref_counted_delete_on_message_loop.h36 class RefCountedDeleteOnMessageLoop : public subtle::RefCountedThreadSafeBase {
49 subtle::RefCountedThreadSafeBase::AddRef(); in AddRef()
53 if (subtle::RefCountedThreadSafeBase::Release()) in Release()
Dref_counted.h23 namespace subtle {
124 class RefCounted : public subtle::RefCountedBase {
129 subtle::RefCountedBase::AddRef(); in AddRef()
133 if (subtle::RefCountedBase::Release()) { in Release()
174 class RefCountedThreadSafe : public subtle::RefCountedThreadSafeBase {
179 subtle::RefCountedThreadSafeBase::AddRef(); in AddRef()
183 if (subtle::RefCountedThreadSafeBase::Release()) { in Release()
/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);
Dheap_profiler_allocation_context_tracker.h36 if (subtle::NoBarrier_Load(&capture_enabled_) == 0) in capture_enabled()
43 return subtle::Acquire_Load(&capture_enabled_) != 0; in capture_enabled()
62 static subtle::Atomic32 capture_enabled_;
Dtrace_log.h373 subtle::NoBarrier_Load(&trace_options_));
407 return static_cast<int>(subtle::NoBarrier_Load(&generation_));
439 subtle::AtomicWord /* EventCallback */ event_callback_;
464 subtle::AtomicWord /* const unsigned char* */ watch_category_;
467 subtle::AtomicWord /* Options */ trace_options_;
494 subtle::AtomicWord generation_;
/external/libchrome/base/metrics/
Dhistogram_samples.cc95 subtle::NoBarrier_Load(&meta_->redundant_count); in Add()
96 subtle::NoBarrier_Store(&meta_->redundant_count, in Add()
112 subtle::NoBarrier_Load(&meta_->redundant_count); in AddFromPickle()
113 subtle::NoBarrier_Store(&meta_->redundant_count, in AddFromPickle()
124 subtle::NoBarrier_Load(&meta_->redundant_count); in Subtract()
125 subtle::NoBarrier_Store(&meta_->redundant_count, in Subtract()
134 if (!pickle->WriteInt(subtle::NoBarrier_Load(&meta_->redundant_count))) in Serialize()
157 subtle::NoBarrier_Store(&meta_->redundant_count, in IncreaseRedundantCount()
158 subtle::NoBarrier_Load(&meta_->redundant_count) + diff); in IncreaseRedundantCount()
Dsample_vector.cc44 subtle::NoBarrier_Store(&counts_[bucket_index], in Accumulate()
45 subtle::NoBarrier_Load(&counts_[bucket_index]) + count); in Accumulate()
52 return subtle::NoBarrier_Load(&counts_[bucket_index]); in GetCount()
58 count += subtle::NoBarrier_Load(&counts_[i]); in TotalCount()
65 return subtle::NoBarrier_Load(&counts_[bucket_index]); in GetCountAtIndex()
87 subtle::NoBarrier_Load(&counts_[index]); in AddSubtractImpl()
88 subtle::NoBarrier_Store(&counts_[index], in AddSubtractImpl()
175 *count = subtle::NoBarrier_Load(&counts_[index_]); in Get()
190 if (subtle::NoBarrier_Load(&counts_[index_]) != 0) in SkipEmptyBuckets()
Dhistogram_base.cc77 HistogramBase::Count old_flags = subtle::NoBarrier_Load(&flags_); in SetFlags()
78 subtle::NoBarrier_Store(&flags_, old_flags | flags); in SetFlags()
82 HistogramBase::Count old_flags = subtle::NoBarrier_Load(&flags_); in ClearFlags()
83 subtle::NoBarrier_Store(&flags_, old_flags & ~flags); in ClearFlags()
/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/libweave/third_party/chromium/base/memory/
Dref_counted.h20 namespace subtle {
111 class RefCounted : public subtle::RefCountedBase {
116 subtle::RefCountedBase::AddRef(); in AddRef()
120 if (subtle::RefCountedBase::Release()) { in Release()
161 class RefCountedThreadSafe : public subtle::RefCountedThreadSafeBase {
166 subtle::RefCountedThreadSafeBase::AddRef(); in AddRef()
170 if (subtle::RefCountedThreadSafeBase::Release()) { in Release()

12345