Home
last modified time | relevance | path

Searched refs:LockGuard (Results 1 – 25 of 32) sorted by relevance

12

/external/v8/test/unittests/base/platform/
Dmutex-unittest.cc14 { LockGuard<Mutex> lock_guard(&mutex); } in TEST()
15 { LockGuard<Mutex> lock_guard(&mutex); } in TEST()
21 { LockGuard<RecursiveMutex> lock_guard(&recursive_mutex); } in TEST()
23 LockGuard<RecursiveMutex> lock_guard1(&recursive_mutex); in TEST()
24 LockGuard<RecursiveMutex> lock_guard2(&recursive_mutex); in TEST()
31 { LockGuard<Mutex> lock_guard(lazy_mutex.Pointer()); } in TEST()
32 { LockGuard<Mutex> lock_guard(lazy_mutex.Pointer()); } in TEST()
38 { LockGuard<RecursiveMutex> lock_guard(lazy_recursive_mutex.Pointer()); } in TEST()
40 LockGuard<RecursiveMutex> lock_guard1(lazy_recursive_mutex.Pointer()); in TEST()
41 LockGuard<RecursiveMutex> lock_guard2(lazy_recursive_mutex.Pointer()); in TEST()
Dcondition-variable-unittest.cc19 LockGuard<Mutex> lock_guard(&mutex); in TEST()
40 LockGuard<Mutex> lock_guard(&mutex_); in Run()
64 LockGuard<Mutex> lock_guard(&threads[n].mutex_); in TEST()
75 LockGuard<Mutex> lock_guard(&threads[n].mutex_); in TEST()
81 LockGuard<Mutex> lock_guard(&threads[n].mutex_); in TEST()
91 LockGuard<Mutex> lock_guard(&threads[n].mutex_); in TEST()
101 LockGuard<Mutex> lock_guard(&threads[n].mutex_); in TEST()
120 LockGuard<Mutex> lock_guard(mutex_); in Run()
152 LockGuard<Mutex> lock_guard(&mutex); in TEST()
162 LockGuard<Mutex> lock_guard(&mutex); in TEST()
[all …]
/external/llvm/lib/Support/
DThreadPool.cpp36 std::unique_lock<std::mutex> LockGuard(QueueLock); in ThreadPool() local
38 QueueCondition.wait(LockGuard, in ThreadPool()
50 std::unique_lock<std::mutex> LockGuard(CompletionLock); in ThreadPool() local
64 std::unique_lock<std::mutex> LockGuard(CompletionLock); in ThreadPool() local
77 std::unique_lock<std::mutex> LockGuard(CompletionLock); in wait() local
78 CompletionCondition.wait(LockGuard, in wait()
88 std::unique_lock<std::mutex> LockGuard(QueueLock); in asyncImpl() local
102 std::unique_lock<std::mutex> LockGuard(QueueLock); in ~ThreadPool() local
/external/v8/src/
Doptimizing-compile-dispatcher.cc45 base::LockGuard<base::Mutex> lock_guard(&dispatcher->ref_count_mutex_); in CompileTask()
71 base::LockGuard<base::Mutex> lock_guard(&dispatcher->ref_count_mutex_); in Run()
87 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in ~OptimizingCompileDispatcher()
106 base::LockGuard<base::Mutex> access_input_queue_(&input_queue_mutex_); in NextInput()
136 base::LockGuard<base::Mutex> access_output_queue_(&output_queue_mutex_); in CompileNext()
146 base::LockGuard<base::Mutex> access_output_queue_(&output_queue_mutex_); in FlushOutputQueue()
174 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in Flush()
190 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in Stop()
219 base::LockGuard<base::Mutex> access_output_queue_(&output_queue_mutex_); in InstallOptimizedFunctions()
264 base::LockGuard<base::Mutex> access_input_queue(&input_queue_mutex_); in QueueForOptimization()
[all …]
Dlocked-queue-inl.h49 base::LockGuard<base::Mutex> guard(&tail_mutex_);
60 base::LockGuard<base::Mutex> guard(&head_mutex_);
74 base::LockGuard<base::Mutex> guard(&head_mutex_);
81 base::LockGuard<base::Mutex> guard(&head_mutex_);
Dcancelable-task.cc39 base::LockGuard<base::Mutex> guard(&mutex_); in Register()
54 base::LockGuard<base::Mutex> guard(&mutex_); in RemoveFinishedTask()
63 base::LockGuard<base::Mutex> guard(&mutex_); in TryAbort()
86 base::LockGuard<base::Mutex> guard(&mutex_); in CancelAndWait()
Dfutex-emulation.cc33 base::LockGuard<base::Mutex> lock_guard(FutexEmulation::mutex_.Pointer()); in NotifyWake()
84 base::LockGuard<base::Mutex> lock_guard(mutex_.Pointer()); in Wait()
199 base::LockGuard<base::Mutex> lock_guard(mutex_.Pointer()); in Wake()
227 base::LockGuard<base::Mutex> lock_guard(mutex_.Pointer()); in WakeOrRequeue()
260 base::LockGuard<base::Mutex> lock_guard(mutex_.Pointer()); in NumWaitersForTesting()
Dlog-utils.h94 base::LockGuard<base::Mutex> lock_guard_;
Doptimizing-compile-dispatcher.h62 base::LockGuard<base::Mutex> access_input_queue(&input_queue_mutex_); in IsQueueAvailable()
Dd8.cc773 base::LockGuard<base::Mutex> lock_guard(workers_mutex_.Pointer()); in WorkerNew()
1263 base::LockGuard<base::Mutex> lock_guard(context_mutex_.Pointer()); in CreateEvaluationContext()
1701 base::LockGuard<base::Mutex> lock_guard(&mutex_); in Enqueue()
1707 base::LockGuard<base::Mutex> lock_guard(&mutex_); in Dequeue()
1716 base::LockGuard<base::Mutex> lock_guard(&mutex_); in IsEmpty()
1722 base::LockGuard<base::Mutex> lock_guard(&mutex_); in Clear()
2191 base::LockGuard<base::Mutex> lock_guard(workers_mutex_.Pointer()); in SerializeValue()
2334 base::LockGuard<base::Mutex> lock_guard(workers_mutex_.Pointer()); in CleanupWorkers()
2347 base::LockGuard<base::Mutex> lock_guard(workers_mutex_.Pointer()); in CleanupWorkers()
Disolate.cc126 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer()); in FindOrAllocatePerThreadDataForThisThread()
143 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer()); in DiscardPerThreadDataForThisThread()
164 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer()); in FindPerThreadDataForThread()
172 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer()); in InitializeOncePerProcess()
1793 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer()); in Isolate()
1850 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer()); in TearDown()
/external/v8/src/libplatform/
Dtask-queue.cc16 base::LockGuard<base::Mutex> guard(&lock_); in ~TaskQueue()
23 base::LockGuard<base::Mutex> guard(&lock_); in Append()
33 base::LockGuard<base::Mutex> guard(&lock_); in GetNext()
50 base::LockGuard<base::Mutex> guard(&lock_); in Terminate()
Ddefault-platform.cc41 base::LockGuard<base::Mutex> guard(&lock_); in ~DefaultPlatform()
66 base::LockGuard<base::Mutex> guard(&lock_); in SetThreadPoolSize()
77 base::LockGuard<base::Mutex> guard(&lock_); in EnsureInitialized()
115 base::LockGuard<base::Mutex> guard(&lock_); in PumpMessageLoop()
144 base::LockGuard<base::Mutex> guard(&lock_); in CallOnForegroundThread()
152 base::LockGuard<base::Mutex> guard(&lock_); in CallDelayedOnForegroundThread()
/external/v8/src/base/platform/
Dmutex.h202 class LockGuard final {
204 explicit LockGuard(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); } in LockGuard() function
205 ~LockGuard() { mutex_->Unlock(); } in ~LockGuard()
210 DISALLOW_COPY_AND_ASSIGN(LockGuard);
Dcondition-variable.cc147 LockGuard<Mutex> lock_guard(&mutex_);
175 LockGuard<Mutex> lock_guard(&mutex_);
221 LockGuard<Mutex> lock_guard(native_handle_.mutex());
247 LockGuard<Mutex> lock_guard(native_handle_.mutex());
Dtime.cc159 LockGuard<Mutex> lock_guard(&mutex_); in Now()
178 LockGuard<Mutex> lock_guard(&mutex_); in NowFromSystemTime()
Dplatform-posix.cc582 { LockGuard<Mutex> lock_guard(&thread->data()->thread_creation_mutex_); } in ThreadEntry()
617 LockGuard<Mutex> lock_guard(&data_->thread_creation_mutex_); in Start()
/external/v8/src/snapshot/
Dsnapshot-external.cc27 base::LockGuard<base::Mutex> lock_guard( in SetSnapshotFromFile()
39 base::LockGuard<base::Mutex> lock_guard( in DefaultSnapshotBlob()
/external/llvm/unittests/Support/
DThreadPool.cpp60 std::unique_lock<std::mutex> LockGuard(WaitMainThreadMutex); in waitForMainThread() local
61 WaitMainThread.wait(LockGuard, [&] { return MainThreadReady; }); in waitForMainThread()
67 std::unique_lock<std::mutex> LockGuard(WaitMainThreadMutex); in setMainThreadReady() local
/external/v8/src/base/utils/
Drandom-number-generator.cc25 LockGuard<Mutex> lock_guard(entropy_mutex.Pointer()); in SetEntropySource()
32 { LockGuard<Mutex> lock_guard(entropy_mutex.Pointer()); in RandomNumberGenerator()
/external/v8/src/heap/
Dstore-buffer-inl.h30 base::LockGuard<base::Mutex> lock_guard(&mutex_); in MarkSynchronized()
Dobject-stats.cc38 base::LockGuard<base::Mutex> lock_guard(object_stats_mutex.Pointer()); in TraceObjectStats()
77 base::LockGuard<base::Mutex> lock_guard(object_stats_mutex.Pointer()); in CheckpointObjectStats()
Dspaces-inl.h386 base::LockGuard<base::Mutex> lock_guard(&space_mutex_); in AllocateRawUnalignedSynchronized()
507 base::LockGuard<base::Mutex> guard(&mutex_); in AllocateRawSynchronized()
/external/v8/src/profiler/
Dsampler.cc356 base::LockGuard<base::Mutex> lock_guard(mutex_); in IncreaseSamplerCount()
361 base::LockGuard<base::Mutex> lock_guard(mutex_); in DecreaseSamplerCount()
582 base::LockGuard<base::Mutex> lock_guard(mutex_); in AddActiveSampler()
601 base::LockGuard<base::Mutex> lock_guard(mutex_); in RemoveActiveSampler()
625 base::LockGuard<base::Mutex> lock_guard(mutex_); in Run()
Dheap-profiler.cc145 base::LockGuard<base::Mutex> guard(&profiler_mutex_); in ObjectMoveEvent()

12