/external/libchrome/base/synchronization/ |
D | lock.h | 24 Lock() : lock_() {} in Lock() 26 void Acquire() { lock_.Lock(); } in Acquire() 27 void Release() { lock_.Unlock(); } in Release() 33 bool Try() { return lock_.Try(); } in Try() 45 lock_.Lock(); 50 lock_.Unlock(); 54 bool rv = lock_.Try(); 102 internal::LockImpl lock_; variable 112 explicit AutoLock(Lock& lock) : lock_(lock) { in AutoLock() 113 lock_.Acquire(); in AutoLock() [all …]
|
D | waitable_event_posix.cc | 52 base::AutoLock locked(kernel_->lock_); in Reset() 57 base::AutoLock locked(kernel_->lock_); in Signal() 74 base::AutoLock locked(kernel_->lock_); in IsSignaled() 92 : fired_(false), signaling_event_(nullptr), lock_(), cv_(&lock_) {} in SyncWaiter() 95 base::AutoLock locked(lock_); in Fire() 139 return &lock_; in lock() 149 base::Lock lock_; member in base::SyncWaiter 172 kernel_->lock_.Acquire(); in TimedWaitUntil() 180 kernel_->lock_.Release(); in TimedWaitUntil() 188 kernel_->lock_.Release(); in TimedWaitUntil() [all …]
|
D | lock_unittest.cc | 21 explicit BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} in BasicLockTestThread() 25 lock_->Acquire(); in ThreadMain() 27 lock_->Release(); in ThreadMain() 30 lock_->Acquire(); in ThreadMain() 33 lock_->Release(); in ThreadMain() 36 if (lock_->Try()) { in ThreadMain() 39 lock_->Release(); in ThreadMain() 47 Lock* lock_; member in base::BasicLockTestThread 96 explicit TryLockTestThread(Lock* lock) : lock_(lock), got_lock_(false) {} in TryLockTestThread() 99 got_lock_ = lock_->Try(); in ThreadMain() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | may_auto_lock.h | 21 : lock_(lock->has_value() ? &lock->value() : nullptr) { in COMPONENT_EXPORT() 22 if (lock_) in COMPONENT_EXPORT() 23 lock_->Acquire(); in COMPONENT_EXPORT() 27 if (lock_) { in COMPONENT_EXPORT() 28 lock_->AssertAcquired(); in COMPONENT_EXPORT() 29 lock_->Release(); in COMPONENT_EXPORT() 34 base::Lock* lock_; in COMPONENT_EXPORT() 43 : lock_(lock->has_value() ? &lock->value() : nullptr) { in COMPONENT_EXPORT() 44 if (lock_) { in COMPONENT_EXPORT() 45 lock_->AssertAcquired(); in COMPONENT_EXPORT() [all …]
|
D | scoped_interface_endpoint_handle.cc | 29 DCHECK(!lock_); in InitPendingState() 32 lock_.emplace(); in InitPendingState() 43 internal::MayAutoLock locker(&lock_); in Close() 96 internal::MayAutoLock locker(&lock_); in SetAssociationEventHandler() 128 internal::MayAutoLock locker(&lock_); in NotifyAssociation() 143 internal::MayAutoLock locker(&lock_); in is_valid() 148 internal::MayAutoLock locker(&lock_); in pending_association() 153 internal::MayAutoLock locker(&lock_); in id() 158 internal::MayAutoLock locker(&lock_); in group_controller() 163 internal::MayAutoLock locker(&lock_); in disconnect_reason() [all …]
|
/external/libchrome/mojo/core/ |
D | core_test_base.cc | 139 base::AutoLock locker(lock_); in GetCtorCallCount() 144 base::AutoLock locker(lock_); in GetDtorCallCount() 149 base::AutoLock locker(lock_); in GetCloseCallCount() 154 base::AutoLock locker(lock_); in GetWriteMessageCallCount() 159 base::AutoLock locker(lock_); in GetReadMessageCallCount() 164 base::AutoLock locker(lock_); in GetWriteDataCallCount() 169 base::AutoLock locker(lock_); in GetBeginWriteDataCallCount() 174 base::AutoLock locker(lock_); in GetEndWriteDataCallCount() 179 base::AutoLock locker(lock_); in GetReadDataCallCount() 184 base::AutoLock locker(lock_); in GetBeginReadDataCallCount() [all …]
|
D | data_pipe_producer_dispatcher.cc | 82 base::AutoLock lock(producer->lock_); in Create() 93 base::AutoLock lock(lock_); in Close() 102 base::AutoLock lock(lock_); in WriteData() 155 base::AutoUnlock unlock(lock_); in WriteData() 164 base::AutoLock lock(lock_); in BeginWriteData() 192 base::AutoLock lock(lock_); in EndWriteData() 212 base::AutoUnlock unlock(lock_); in EndWriteData() 226 base::AutoLock lock(lock_); in GetHandleSignalsState() 233 base::AutoLock lock(lock_); in AddWatcherRef() 242 base::AutoLock lock(lock_); in RemoveWatcherRef() [all …]
|
D | data_pipe_consumer_dispatcher.cc | 83 base::AutoLock lock(consumer->lock_); in Create() 94 base::AutoLock lock(lock_); in Close() 103 base::AutoLock lock(lock_); in ReadData() 182 base::AutoUnlock unlock(lock_); in ReadData() 196 base::AutoLock lock(lock_); in BeginReadData() 233 base::AutoLock lock(lock_); in EndReadData() 254 base::AutoUnlock unlock(lock_); in EndReadData() 267 base::AutoLock lock(lock_); in GetHandleSignalsState() 274 base::AutoLock lock(lock_); in AddWatcherRef() 283 base::AutoLock lock(lock_); in RemoveWatcherRef() [all …]
|
/external/sfntly/cpp/src/test/ |
D | lock_test.cc | 29 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} in BasicLockTestThread() 33 lock_->Acquire(); in ThreadMain() 35 lock_->Unlock(); in ThreadMain() 38 lock_->Acquire(); in ThreadMain() 41 lock_->Unlock(); in ThreadMain() 44 if (lock_->Try()) { in ThreadMain() 47 lock_->Unlock(); in ThreadMain() 55 Lock* lock_; member in sfntly::BasicLockTestThread 106 TryLockTestThread(Lock* lock) : lock_(lock), got_lock_(false) {} in TryLockTestThread() 109 got_lock_ = lock_->Try(); in ThreadMain() [all …]
|
/external/libchrome/ipc/ |
D | ipc_mojo_bootstrap.cc | 68 base::AutoLock lock(lock_); in AddController() 73 base::AutoLock lock(lock_); in RemoveController() 82 base::Lock lock_; member in IPC::__anon75e303610111::ControllerMemoryDumpProvider 170 base::AutoLock locker(lock_); in CreateChannelEndpoints() 207 base::AutoLock locker(lock_); in AssociateInterface() 227 base::AutoLock locker(lock_); in AssociateInterface() 253 base::AutoLock locker(lock_); in CreateLocalEndpointHandle() 275 base::AutoLock locker(lock_); in CloseEndpointHandle() 296 base::AutoLock locker(lock_); in AttachEndpointClient() 314 base::AutoLock locker(lock_); in DetachEndpointClient() [all …]
|
D | ipc_sync_message_filter.cc | 33 base::AutoLock auto_lock(lock_); in Send() 54 base::AutoLock auto_lock(lock_); in Send() 92 base::AutoLock auto_lock(lock_); in Send() 103 base::AutoLock auto_lock(lock_); in OnFilterAdded() 114 base::AutoLock auto_lock(lock_); in OnChannelError() 120 base::AutoLock auto_lock(lock_); in OnChannelClosing() 126 base::AutoLock auto_lock(lock_); in OnMessageReceived() 161 base::AutoLock auto_lock(lock_); in SendOnIOThread() 169 lock_.AssertAcquired(); in SignalAllEvents() 182 base::AutoLock auto_lock(lock_); in GetGenericRemoteAssociatedInterface()
|
/external/libevent/ |
D | evthread.c | 217 debug_lock_free(void *lock_, unsigned locktype) in debug_lock_free() argument 219 struct debug_lock *lock = lock_; in debug_lock_free() 250 debug_lock_lock(unsigned mode, void *lock_) in debug_lock_lock() argument 252 struct debug_lock *lock = lock_; in debug_lock_lock() 286 debug_lock_unlock(unsigned mode, void *lock_) in debug_lock_unlock() argument 288 struct debug_lock *lock = lock_; in debug_lock_unlock() 297 debug_cond_wait(void *cond_, void *lock_, const struct timeval *tv) in debug_cond_wait() argument 300 struct debug_lock *lock = lock_; in debug_cond_wait() 303 EVLOCK_ASSERT_LOCKED(lock_); in debug_cond_wait() 345 evthread_is_debug_lock_held_(void *lock_) in evthread_is_debug_lock_held_() argument [all …]
|
/external/libchrome/base/task/sequence_manager/ |
D | moveable_auto_lock.h | 15 explicit MoveableAutoLock(Lock& lock) : lock_(lock), moved_(false) { in MoveableAutoLock() 16 lock_.Acquire(); in MoveableAutoLock() 20 : lock_(other.lock_), moved_(other.moved_) { in MoveableAutoLock() 21 lock_.AssertAcquired(); in MoveableAutoLock() 28 lock_.AssertAcquired(); in ~MoveableAutoLock() 29 lock_.Release(); in ~MoveableAutoLock() 33 Lock& lock_;
|
/external/libchrome/base/metrics/ |
D | statistics_recorder.cc | 34 LazyInstance<Lock>::Leaky StatisticsRecorder::lock_; member in base::StatisticsRecorder 54 const AutoLock auto_lock(lock_.Get()); in ~StatisticsRecorder() 61 lock_.Get().AssertAcquired(); in EnsureGlobalRecorderWhileLocked() 74 const AutoLock auto_lock(lock_.Get()); in RegisterHistogramProvider() 84 const AutoLock auto_lock(lock_.Get()); in RegisterOrDeleteDuplicate() 124 const AutoLock auto_lock(lock_.Get()); in RegisterOrDeleteDuplicateRanges() 180 const AutoLock auto_lock(lock_.Get()); in GetBucketRanges() 194 const AutoLock auto_lock(lock_.Get()); in FindHistogram() 204 const AutoLock auto_lock(lock_.Get()); in GetHistogramProviders() 235 const AutoLock auto_lock(lock_.Get()); in InitLogOnShutdown() [all …]
|
/external/libchrome/base/ |
D | thread_annotations_unittest.cc | 19 AutoLock(Lock& lock) EXCLUSIVE_LOCK_FUNCTION(lock) : lock_(lock) { in EXCLUSIVE_LOCK_FUNCTION() 22 ~AutoLock() UNLOCK_FUNCTION() { lock_.Release(); } in UNLOCK_FUNCTION() 25 Lock& lock_; member in __anon919afdb70111::AutoLock 34 Lock lock_; member in __anon919afdb70111::ThreadSafe 35 int counter_ GUARDED_BY(lock_); 39 lock_.Acquire(); in ExplicitIncrement() 41 lock_.Release(); in ExplicitIncrement() 45 AutoLock auto_lock(lock_); in ImplicitIncrement()
|
D | thread_annotations_unittest.nc | 20 AutoLock(Lock& lock) EXCLUSIVE_LOCK_FUNCTION(lock) : lock_(lock) { 23 ~AutoLock() UNLOCK_FUNCTION() { lock_.Release(); } 26 Lock& lock_; 32 Lock lock_; 33 int counter_ GUARDED_BY(lock_); 36 #if defined(NCTEST_LOCK_WITHOUT_UNLOCK) // [r"fatal error: mutex 'lock_' is still held at the end … 39 lock_.Acquire(); 44 …_LOCK) // [r"fatal error: writing variable 'counter_' requires holding mutex 'lock_' exclusively"] 51 …_LOCK) // [r"fatal error: writing variable 'counter_' requires holding mutex 'lock_' exclusively"] 55 AutoLock auto_lock(lock_);
|
/external/webrtc/webrtc/base/ |
D | sharedexclusivelock.h | 45 : lock_(lock) { in SharedScope() 46 lock_->LockShared(); in SharedScope() 49 ~SharedScope() UNLOCK_FUNCTION() { lock_->UnlockShared(); } in UNLOCK_FUNCTION() 52 SharedExclusiveLock* lock_; 61 : lock_(lock) { in ExclusiveScope() 62 lock_->LockExclusive(); in ExclusiveScope() 65 ~ExclusiveScope() UNLOCK_FUNCTION() { lock_->UnlockExclusive(); } in UNLOCK_FUNCTION() 68 SharedExclusiveLock* lock_;
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | bfc_allocator.h | 330 EXCLUSIVE_LOCKS_REQUIRED(lock_); 335 uint64 freed_before) EXCLUSIVE_LOCKS_REQUIRED(lock_); 340 EXCLUSIVE_LOCKS_REQUIRED(lock_); 344 void Merge(ChunkHandle h, ChunkHandle h2) EXCLUSIVE_LOCKS_REQUIRED(lock_); 348 void FreeAndMaybeCoalesce(ChunkHandle h) EXCLUSIVE_LOCKS_REQUIRED(lock_); 351 void InsertFreeChunkIntoBin(ChunkHandle h) EXCLUSIVE_LOCKS_REQUIRED(lock_); 356 EXCLUSIVE_LOCKS_REQUIRED(lock_); 359 void RemoveFreeChunkFromBin(ChunkHandle h) EXCLUSIVE_LOCKS_REQUIRED(lock_); 362 void DeleteChunk(ChunkHandle h) EXCLUSIVE_LOCKS_REQUIRED(lock_); 364 string RenderOccupancy() EXCLUSIVE_LOCKS_REQUIRED(lock_); [all …]
|
/external/webrtc/webrtc/system_wrappers/source/ |
D | rw_lock_posix.cc | 15 RWLockPosix::RWLockPosix() : lock_() { in RWLockPosix() 19 pthread_rwlock_destroy(&lock_); in ~RWLockPosix() 32 return pthread_rwlock_init(&lock_, 0) == 0; in Init() 36 pthread_rwlock_wrlock(&lock_); in AcquireLockExclusive() 40 pthread_rwlock_unlock(&lock_); in ReleaseLockExclusive() 44 pthread_rwlock_rdlock(&lock_); in AcquireLockShared() 48 pthread_rwlock_unlock(&lock_); in ReleaseLockShared()
|
/external/libchrome/base/test/ |
D | test_simple_task_runner.cc | 22 AutoLock auto_lock(lock_); in PostDelayedTask() 32 AutoLock auto_lock(lock_); in PostNonNestableDelayedTask() 47 AutoLock auto_lock(lock_); in TakePendingTasks() 52 AutoLock auto_lock(lock_); in NumPendingTasks() 57 AutoLock auto_lock(lock_); in HasPendingTask() 62 AutoLock auto_lock(lock_); in NextPendingTaskDelay() 67 AutoLock auto_lock(lock_); in FinalPendingTaskDelay() 72 AutoLock auto_lock(lock_); in ClearPendingTasks() 82 AutoLock auto_lock(lock_); in RunPendingTasks()
|
/external/webrtc/webrtc/modules/utility/source/ |
D | process_thread_impl.cc | 73 rtc::CritScope lock(&lock_); in Start() 89 rtc::CritScope lock(&lock_); in Stop() 104 rtc::CritScope lock(&lock_); in Stop() 113 rtc::CritScope lock(&lock_); in WakeUp() 125 rtc::CritScope lock(&lock_); in PostTask() 138 rtc::CritScope lock(&lock_); in RegisterModule() 151 rtc::CritScope lock(&lock_); in RegisterModule() 167 rtc::CritScope lock(&lock_); in DeRegisterModule() 195 rtc::CritScope lock(&lock_); in Process() 223 lock_.Leave(); in Process() [all …]
|
/external/perfetto/src/profiling/memory/ |
D | scoped_spinlock.h | 39 ScopedSpinlock(std::atomic<bool>* lock, Mode mode) : lock_(lock) { in ScopedSpinlock() 40 if (PERFETTO_LIKELY(!lock_->exchange(true, std::memory_order_acquire))) { in ScopedSpinlock() 51 : lock_(other.lock_), locked_(other.locked_) { in ScopedSpinlock() 67 PERFETTO_DCHECK(lock_->load()); in Unlock() 68 lock_->store(false, std::memory_order_release); in Unlock() 77 std::atomic<bool>* lock_; variable
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/ |
D | remote_estimator_proxy.h | 58 EXCLUSIVE_LOCKS_REQUIRED(&lock_); 65 rtc::CriticalSection lock_; variable 67 uint32_t media_ssrc_ GUARDED_BY(&lock_); 68 uint8_t feedback_sequence_ GUARDED_BY(&lock_); 69 SequenceNumberUnwrapper unwrapper_ GUARDED_BY(&lock_); 70 int64_t window_start_seq_ GUARDED_BY(&lock_); 72 std::map<int64_t, int64_t> packet_arrival_times_ GUARDED_BY(&lock_);
|
/external/perfetto/src/base/ |
D | android_task_runner.cc | 39 std::lock_guard<std::mutex> lock(lock_); in ~AndroidTaskRunner() 60 std::lock_guard<std::mutex> lock(lock_); in Run() 69 std::lock_guard<std::mutex> lock(lock_); in Quit() 76 std::lock_guard<std::mutex> lock(lock_); in IsIdleForTesting() 87 std::lock_guard<std::mutex> lock(lock_); in RunImmediateTask() 112 std::lock_guard<std::mutex> lock(lock_); in RunDelayedTask() 145 std::lock_guard<std::mutex> lock(lock_); in PostTask() 159 std::lock_guard<std::mutex> lock(lock_); in PostDelayedTask() 172 std::lock_guard<std::mutex> lock(lock_); in AddFileDescriptorWatch() 196 std::lock_guard<std::mutex> lock(lock_); in OnFileDescriptorEvent() [all …]
|
/external/webrtc/talk/media/webrtc/ |
D | webrtcvideoengine2.h | 340 EXCLUSIVE_LOCKS_REQUIRED(lock_); 343 EXCLUSIVE_LOCKS_REQUIRED(lock_); 345 EXCLUSIVE_LOCKS_REQUIRED(lock_); 348 EXCLUSIVE_LOCKS_REQUIRED(lock_); 349 void RecreateWebRtcStream() EXCLUSIVE_LOCKS_REQUIRED(lock_); 352 const VideoCodec& codec) const EXCLUSIVE_LOCKS_REQUIRED(lock_); 354 EXCLUSIVE_LOCKS_REQUIRED(lock_); 360 GUARDED_BY(lock_); 362 rtc::CriticalSection lock_; variable 363 webrtc::VideoSendStream* stream_ GUARDED_BY(lock_); [all …]
|