Home
last modified time | relevance | path

Searched refs:lock_ (Results 1 – 25 of 120) sorted by relevance

12345

/external/chromium/base/synchronization/
Dlock.h21 Lock() : lock_() {} in Lock()
23 void Acquire() { lock_.Lock(); } in Acquire()
24 void Release() { lock_.Unlock(); } in Release()
30 bool Try() { return lock_.Try(); } in Try()
42 lock_.Lock();
47 lock_.Unlock();
51 bool rv = lock_.Try();
89 internal::LockImpl lock_; variable
97 explicit AutoLock(Lock& lock) : lock_(lock) { in AutoLock()
98 lock_.Acquire(); in AutoLock()
[all …]
Dlock_unittest.cc17 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} in BasicLockTestThread()
21 lock_->Acquire(); in ThreadMain()
23 lock_->Release(); in ThreadMain()
26 lock_->Acquire(); in ThreadMain()
29 lock_->Release(); in ThreadMain()
32 if (lock_->Try()) { in ThreadMain()
35 lock_->Release(); in ThreadMain()
43 Lock* lock_; member in base::BasicLockTestThread
92 TryLockTestThread(Lock* lock) : lock_(lock), got_lock_(false) {} in TryLockTestThread()
95 got_lock_ = lock_->Try(); in ThreadMain()
[all …]
Dwaitable_event_posix.cc45 base::AutoLock locked(kernel_->lock_); in Reset()
50 base::AutoLock locked(kernel_->lock_); in Signal()
67 base::AutoLock locked(kernel_->lock_); in IsSignaled()
87 lock_(), in SyncWaiter()
88 cv_(&lock_) { in SyncWaiter()
92 base::AutoLock locked(lock_); in Fire()
138 return &lock_; in lock()
148 base::Lock lock_; member in base::SyncWaiter
160 kernel_->lock_.Acquire(); in TimedWait()
168 kernel_->lock_.Release(); in TimedWait()
[all …]
Dcondition_variable_unittest.cc123 Lock lock_; member in base::__anon7419ae140111::WorkQueue
475 : lock_(), in WorkQueue()
476 work_is_available_(&lock_), in WorkQueue()
477 all_threads_have_ids_(&lock_), in WorkQueue()
478 no_more_tasks_(&lock_), in WorkQueue()
503 base::AutoLock auto_lock(lock_); in ~WorkQueue()
551 lock_.AssertAcquired(); in shutdown()
561 base::AutoLock auto_lock(lock_); in ThreadSafeCheckShutdown()
571 lock_.AssertAcquired(); in thread_shutting_down()
577 return &lock_; in lock()
[all …]
Dwaitable_event_watcher_posix.cc34 AutoLock locked(lock_); in Set()
39 AutoLock locked(lock_); in value()
44 mutable Lock lock_; member in base::Flag
161 AutoLock locked(kernel->lock_); in StartWatching()
218 AutoLock locked(kernel_->lock_); in StopWatching()
/external/chromium/base/
Dshared_memory_win.cc17 lock_(NULL) { in SharedMemory()
25 lock_(NULL), in SharedMemory()
34 lock_(NULL) { in SharedMemory()
43 lock_(NULL) { in SharedMemory()
53 if (lock_ != NULL) in ~SharedMemory()
54 CloseHandle(lock_); in ~SharedMemory()
204 if (lock_ == NULL) { in Lock()
207 lock_ = CreateMutex(sec_attr, FALSE, name.c_str()); in Lock()
208 if (lock_ == NULL) { in Lock()
213 DWORD result = WaitForSingleObject(lock_, timeout_ms); in Lock()
[all …]
/external/chromium/chrome/browser/debugger/
Ddevtools_remote_listen_socket_unittest.cc80 memset(&lock_, 0, sizeof(lock_)); in DevToolsRemoteListenSocketTester()
85 InitializeCriticalSection(&lock_); in SetUp()
90 ASSERT_EQ(0, pthread_mutex_init(&lock_, NULL)); in SetUp()
145 DeleteCriticalSection(&lock_); in TearDown()
147 ASSERT_EQ(0, pthread_mutex_lock(&lock_)); in TearDown()
149 ASSERT_EQ(0, pthread_mutex_unlock(&lock_)); in TearDown()
151 ASSERT_EQ(0, pthread_mutex_destroy(&lock_)); in TearDown()
161 EnterCriticalSection(&lock_); in ReportAction()
163 LeaveCriticalSection(&lock_); in ReportAction()
166 ASSERT_EQ(0, pthread_mutex_lock(&lock_)); in ReportAction()
[all …]
/external/chromium/chrome/browser/net/
Dchrome_net_log.cc33 net_log_->lock_.AssertAcquired(); in AssertNetLogLockAcquired()
39 base::AutoLock lock(net_log_->lock_); in SetLogLevel()
89 base::AutoLock lock(lock_); in AddEntry()
106 base::AutoLock lock(lock_); in AddObserver()
111 base::AutoLock lock(lock_); in RemoveObserver()
120 base::AutoLock lock(lock_); in AddObserverAndGetAllPassivelyCapturedEvents()
126 base::AutoLock lock(lock_); in GetAllPassivelyCapturedEvents()
131 base::AutoLock lock(lock_); in ClearAllPassivelyCapturedEvents()
136 lock_.AssertAcquired(); in UpdateLogLevel_()
/external/chromium/webkit/glue/media/
Dsimple_data_source.cc49 base::AutoLock auto_lock(lock_); in ~SimpleDataSource()
56 base::AutoLock auto_lock(lock_); in set_host()
63 base::AutoLock auto_lock(lock_); in Stop()
83 base::AutoLock auto_lock(lock_); in Initialize()
103 base::AutoLock auto_lock(lock_); in CancelInitialize()
154 base::AutoLock auto_lock(lock_); in willSendRequest()
208 base::AutoLock auto_lock(lock_); in didFinishLoading()
236 base::AutoLock auto_lock(lock_); in didFail()
278 base::AutoLock auto_lock(lock_); in StartTask()
315 base::AutoLock auto_lock(lock_); in CancelTask()
[all …]
Dbuffered_data_source.cc128 base::AutoLock auto_lock(lock_); in CancelInitialize()
141 base::AutoLock auto_lock(lock_); in Stop()
172 base::AutoLock auto_lock(lock_); in Read()
258 base::AutoLock auto_lock(lock_); in ReadTask()
280 base::AutoLock auto_lock(lock_); in CleanupTask()
315 base::AutoLock auto_lock(lock_); in RestartLoadingTask()
336 base::AutoLock auto_lock(lock_); in WatchDogTask()
428 lock_.AssertAcquired(); in DoneRead_Locked()
447 lock_.AssertAcquired(); in DoneInitialization_Locked()
508 base::AutoLock auto_lock(lock_); in HttpInitialStartCallback()
[all …]
/external/chromium/base/threading/
Dwatchdog.cc18 lock_(), in Watchdog()
19 condition_variable_(&lock_), in Watchdog()
37 AutoLock lock(lock_); in ~Watchdog()
55 AutoLock lock(lock_); in ArmAtStartTime()
66 AutoLock lock(lock_); in Disarm()
83 AutoLock lock(watchdog_->lock_); in ThreadMain()
Dthread_collision_warner_unittest.cc271 lock_(lock) {} in TEST()
275 base::AutoLock auto_lock(lock_); in TEST()
279 base::AutoLock auto_lock(lock_); in TEST()
285 base::Lock& lock_; in TEST() member in TEST::QueueUser
345 lock_(lock) {} in TEST()
349 base::AutoLock auto_lock(lock_); in TEST()
353 base::AutoLock auto_lock(lock_); in TEST()
357 base::AutoLock auto_lock(lock_); in TEST()
363 base::Lock& lock_; in TEST() member in TEST::QueueUser
Dthread_checker_impl.cc18 AutoLock auto_lock(lock_); in CalledOnValidThread()
23 AutoLock auto_lock(lock_); in DetachFromThread()
28 AutoLock auto_lock(lock_); in EnsureThreadIdAssigned()
/external/chromium/chrome/browser/metrics/
Dthread_watcher.cc205 base::AutoLock auto_lock(lock_); in ~ThreadWatcherList()
214 base::AutoLock auto_lock(global_->lock_); in Register()
282 base::AutoLock auto_lock(global_->lock_); in RemoveNotifications()
288 base::AutoLock auto_lock(lock_); in DeleteAll()
304 base::AutoLock lock(lock_); in Observe()
321 base::AutoLock auto_lock(lock_); in WakeUpAll()
332 base::AutoLock auto_lock(global_->lock_); in Find()
347 base::Lock WatchDogThread::lock_; member in WatchDogThread
366 base::AutoLock lock(lock_); in CurrentlyOnWatchDogThread()
390 base::AutoLock lock(lock_); in PostTaskHelper()
[all …]
Dhistogram_synchronizer.cc27 : lock_(), in HistogramSynchronizer()
28 received_all_renderer_histograms_(&lock_), in HistogramSynchronizer()
60 base::AutoLock auto_lock(lock_); in FetchRendererHistogramsSynchronously()
157 base::AutoLock auto_lock(lock_); in DecrementPendingRenderers()
182 base::AutoLock auto_lock(lock_); in SetCallbackTaskAndThread()
205 base::AutoLock lock(lock_); in ForceHistogramSynchronizationDoneCallback()
236 base::AutoLock auto_lock(lock_); in GetNextAvailableSequenceNumber()
/external/chromium/chrome/browser/extensions/
Dextension_special_storage_policy.cc18 base::AutoLock locker(lock_); in IsStorageProtected()
23 base::AutoLock locker(lock_); in IsStorageUnlimited()
29 base::AutoLock locker(lock_); in IsFileHandler()
41 base::AutoLock locker(lock_); in GrantRightsForExtension()
58 base::AutoLock locker(lock_); in RevokeRightsForExtension()
68 base::AutoLock locker(lock_); in RevokeRightsForAllExtensions()
/external/chromium/net/base/
Dandroid_network_library.cc23 AutoLock lock(lock_); in Register()
32 AutoLock lock(lock_); in Reset()
37 AutoLock lock(lock_); in GetLibrary()
43 Lock lock_; member in net::LibHolder
Dcapturing_net_log.cc29 base::AutoLock lock(lock_); in GetEntries()
34 base::AutoLock lock(lock_); in Clear()
39 base::AutoLock lock(lock_); in SetLogLevel()
48 base::AutoLock lock(lock_); in AddEntry()
59 base::AutoLock lock(lock_); in GetLogLevel()
Dopenssl_memory_private_key_store.cc29 base::AutoLock lock(lock_); in ~OpenSSLMemoryKeyStore()
38 base::AutoLock lock(lock_); in StorePrivateKey()
44 base::AutoLock lock(lock_); in FetchPrivateKey()
55 base::Lock lock_; member in net::__anon715d20680111::OpenSSLMemoryKeyStore
/external/chromium/chrome/browser/sync/syncable/
Ddirectory_manager.cc48 base::AutoLock lock(lock_); in ~DirectoryManager()
67 base::AutoLock lock(lock_); in OpenImpl()
84 base::AutoLock lock(lock_); in OpenImpl()
95 base::AutoLock lock(lock_); in Close()
115 base::AutoLock lock(lock_); in FinalSaveChangesForAll()
122 base::AutoLock lock(lock_); in GetOpenDirectories()
/external/chromium/net/ocsp/
Dnss_ocsp.cc49 base::AutoLock autolock(lock_); in StartUsing()
57 base::AutoLock autolock(lock_); in used()
77 mutable base::Lock lock_; member in __anon15e1ad800111::OCSPIOLoop
160 cv_(&lock_), in OCSPRequestSession()
191 base::AutoLock autolock(lock_); in Cancel()
196 base::AutoLock autolock(lock_); in Finished()
202 base::AutoLock autolock(lock_); in Wait()
293 base::AutoLock autolock(lock_); in OnReadCompleted()
306 base::AutoLock autolock(lock_); in CancelURLRequest()
317 base::AutoLock autolock(lock_); in CancelURLRequest()
[all …]
/external/chromium/chrome/common/
Dworker_thread_ticker.cc47 base::AutoLock lock(lock_); in RegisterTickHandler()
58 base::AutoLock lock(lock_); in UnregisterTickHandler()
77 base::AutoLock lock(lock_); in Start()
90 base::AutoLock lock(lock_); in Stop()
/external/chromium/chrome/browser/sync/glue/
Dui_model_worker.cc36 base::AutoLock lock(lock_); in DoWorkAndWaitUntilDone()
54 syncapi_event_(&lock_) { in UIModelWorker()
62 base::AutoLock lock(lock_); in OnSyncerShutdownComplete()
77 base::AutoLock lock(lock_); in Stop()
/external/valgrind/tsan/
Dts_lock.h65 : lock_(lock) { in ScopedLock()
66 lock_->Lock(); in ScopedLock()
68 ~ScopedLock() { lock_->Unlock(); } in ~ScopedLock()
70 TSLock *lock_;
/external/chromium/crypto/
Dnss_util.cc163 : lock_(SECMOD_GetDefaultModuleListLock()) { in AutoSECMODListReadLock()
164 SECMOD_GetReadLock(lock_); in AutoSECMODListReadLock()
168 SECMOD_ReleaseReadLock(lock_); in ~AutoSECMODListReadLock()
172 SECMODListLock* lock_; member in crypto::__anonc4aade1f0111::AutoSECMODListReadLock
661 AutoNSSWriteLock::AutoNSSWriteLock() : lock_(GetNSSWriteLock()) { in AutoNSSWriteLock()
663 if (lock_) in AutoNSSWriteLock()
664 lock_->Acquire(); in AutoNSSWriteLock()
668 if (lock_) { in ~AutoNSSWriteLock()
669 lock_->AssertAcquired(); in ~AutoNSSWriteLock()
670 lock_->Release(); in ~AutoNSSWriteLock()

12345