Home
last modified time | relevance | path

Searched refs:lock_guard (Results 1 – 25 of 65) sorted by relevance

123

/external/libcxx/include/
Dmutex99 class lock_guard
104 explicit lock_guard(mutex_type& m);
105 lock_guard(mutex_type& m, adopt_lock_t);
106 ~lock_guard();
108 lock_guard(lock_guard const&) = delete;
109 lock_guard& operator=(lock_guard const&) = delete;
112 template <class... MutexTypes> // Variadic lock_guard only provided in ABI V2.
113 class lock_guard
116 explicit lock_guard(MutexTypes&... m);
117 lock_guard(MutexTypes&... m, adopt_lock_t);
[all …]
D__mutex_base84 // Forward declare lock_guard as a variadic template even in C++03 to keep
88 class _LIBCPP_TEMPLATE_VIS lock_guard;
94 lock_guard
96 lock_guard<_Mutex>
107 explicit lock_guard(mutex_type& __m) _LIBCPP_THREAD_SAFETY_ANNOTATION(acquire_capability(__m))
110lock_guard(mutex_type& __m, adopt_lock_t) _LIBCPP_THREAD_SAFETY_ANNOTATION(requires_capability(__m…
113 ~lock_guard() _LIBCPP_THREAD_SAFETY_ANNOTATION(release_capability()) {__m_.unlock();}
116 lock_guard(lock_guard const&) _LIBCPP_EQUAL_DELETE;
117 lock_guard& operator=(lock_guard const&) _LIBCPP_EQUAL_DELETE;
Dcondition_variable177 {lock_guard<mutex> __lx(*__mut_);}
185 {lock_guard<mutex> __lx(*__mut_);}
203 lock_guard<unique_lock<mutex> > __lx(__lk, adopt_lock);
225 lock_guard<unique_lock<mutex> > __lx(__lk, adopt_lock);
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/
Dvariadic_types.pass.cpp44 using T = std::lock_guard<>; in main()
49 using T = std::lock_guard<M1>; in main()
54 using T = std::lock_guard<M1>; in main()
60 using T = std::lock_guard<M1, M2>; in main()
66 using T = std::lock_guard<M1, M1, M2>; in main()
71 using T = std::lock_guard<M1, M1>; in main()
76 using T = std::lock_guard<M1, M1, M1>; in main()
Dvariadic_mutex.pass.cpp71 using LG = std::lock_guard<>; in main()
75 using LG = std::lock_guard<TestMutex, TestMutex>; in main()
84 using LG = std::lock_guard<TestMutex, TestMutex, TestMutex>; in main()
95 using LG = std::lock_guard<MT, MT>; in main()
106 using LG = std::lock_guard<MT, MT, MT>; in main()
Dvariadic_copy.fail.cpp28 using LG = std::lock_guard<>; in main()
33 using LG = std::lock_guard<M, M>; in main()
38 using LG = std::lock_guard<M, M, M>; in main()
Dvariadic_assign.fail.cpp29 using LG = std::lock_guard<>; in main()
34 using LG = std::lock_guard<M, M>; in main()
40 using LG = std::lock_guard<M, M, M>; in main()
Dvariadic_mutex.fail.cpp32 using LG = std::lock_guard<>; in main()
38 using LG = std::lock_guard<M, M>; in main()
44 using LG = std::lock_guard<M, M, M>; in main()
Dvariadic_adopt_lock.pass.cpp39 using LG = std::lock_guard<>; in main()
44 using LG = std::lock_guard<TestMutex, TestMutex>; in main()
54 using LG = std::lock_guard<TestMutex, TestMutex, TestMutex>; in main()
Dcopy.fail.cpp21 std::lock_guard<std::mutex> lg0(m); in main()
22 std::lock_guard<std::mutex> lg(lg0); in main()
Dassign.fail.cpp22 std::lock_guard<std::mutex> lg0(m0); in main()
23 std::lock_guard<std::mutex> lg(m1); in main()
/external/vulkan-validation-layers/layers/
Dobject_tracker.cpp479 std::lock_guard<std::mutex> lock(global_lock); in GetPhysicalDeviceFeatures()
493 std::lock_guard<std::mutex> lock(global_lock); in GetPhysicalDeviceFormatProperties()
510 std::lock_guard<std::mutex> lock(global_lock); in GetPhysicalDeviceImageFormatProperties()
526 std::lock_guard<std::mutex> lock(global_lock); in GetPhysicalDeviceProperties()
540 std::lock_guard<std::mutex> lock(global_lock); in GetPhysicalDeviceMemoryProperties()
565 std::lock_guard<std::mutex> lock(global_lock); in QueueSubmit()
603 std::lock_guard<std::mutex> lock(global_lock); in QueueWaitIdle()
616 std::lock_guard<std::mutex> lock(global_lock); in DeviceWaitIdle()
630 std::lock_guard<std::mutex> lock(global_lock); in AllocateMemory()
638 std::lock_guard<std::mutex> lock(global_lock); in AllocateMemory()
[all …]
Dunique_objects.cpp384 std::lock_guard<std::mutex> lock(global_lock); in AllocateMemory()
399 std::lock_guard<std::mutex> lock(global_lock); in CreateComputePipelines()
421 std::lock_guard<std::mutex> lock(global_lock); in CreateComputePipelines()
430 std::lock_guard<std::mutex> lock(global_lock); in CreateComputePipelines()
447 std::lock_guard<std::mutex> lock(global_lock); in CreateGraphicsPipelines()
477 std::lock_guard<std::mutex> lock(global_lock); in CreateGraphicsPipelines()
486 std::lock_guard<std::mutex> lock(global_lock); in CreateGraphicsPipelines()
530 std::lock_guard<std::mutex> lock(global_lock); in CreateSwapchainKHR()
546 std::lock_guard<std::mutex> lock(global_lock); in CreateSwapchainKHR()
558 std::lock_guard<std::mutex> lock(global_lock); in GetSwapchainImagesKHR()
[all …]
/external/v8/src/compiler-dispatcher/
Doptimizing-compile-dispatcher.cc40 base::LockGuard<base::Mutex> lock_guard(&dispatcher_->ref_count_mutex_); in CompileTask() local
67 base::LockGuard<base::Mutex> lock_guard(&dispatcher_->ref_count_mutex_); in Run() local
83 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in ~OptimizingCompileDispatcher() local
157 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in Flush() local
171 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in Stop() local
/external/v8/src/zone/
Daccounting-allocator.cc44 base::LockGuard<base::Mutex> lock_guard(&unused_segments_mutex_); in ConfigureSegmentPool() local
139 base::LockGuard<base::Mutex> lock_guard(&unused_segments_mutex_); in GetSegmentFromPool() local
174 base::LockGuard<base::Mutex> lock_guard(&unused_segments_mutex_); in AddSegmentToPool() local
190 base::LockGuard<base::Mutex> lock_guard(&unused_segments_mutex_); in ClearPool() local
/external/v8/src/
Dfutex-emulation.cc34 base::LockGuard<base::Mutex> lock_guard(FutexEmulation::mutex_.Pointer()); in NotifyWake() local
85 base::LockGuard<base::Mutex> lock_guard(mutex_.Pointer()); in Wait() local
199 base::LockGuard<base::Mutex> lock_guard(mutex_.Pointer()); in Wake() local
224 base::LockGuard<base::Mutex> lock_guard(mutex_.Pointer()); in NumWaitersForTesting() local
/external/v8/src/snapshot/
Dsnapshot-external.cc26 base::LockGuard<base::Mutex> lock_guard( in SetSnapshotFromFile() local
38 base::LockGuard<base::Mutex> lock_guard( in DefaultSnapshotBlob() local
/external/mesa3d/src/gallium/state_trackers/clover/core/
Devent.cpp41 std::lock_guard<std::mutex> lock(mutex); in trigger_self()
65 std::lock_guard<std::mutex> lock(mutex); in abort_self()
86 std::lock_guard<std::mutex> lock(mutex); in signalled()
92 std::lock_guard<std::mutex> lock(mutex); in status()
Dqueue.cpp71 std::lock_guard<std::mutex> lock(queued_events_mutex); in flush()
97 std::lock_guard<std::mutex> lock(queued_events_mutex); in sequence()
/external/libcxx/src/
Dmutex.cpp97 lock_guard<mutex> _(__m_); in ~timed_mutex()
124 lock_guard<mutex> _(__m_); in unlock()
139 lock_guard<mutex> _(__m_); in ~recursive_timed_mutex()
Dshared_mutex.cpp52 lock_guard<mutex> _(__mut_); in unlock()
88 lock_guard<mutex> _(__mut_); in unlock_shared()
/external/v8/src/base/platform/
Dcondition-variable.cc160 LockGuard<Mutex> lock_guard(&mutex_);
188 LockGuard<Mutex> lock_guard(&mutex_);
234 LockGuard<Mutex> lock_guard(native_handle_.mutex());
260 LockGuard<Mutex> lock_guard(native_handle_.mutex());
/external/libcxx/src/experimental/
Dmemory_resource.cpp112 lock_guard<mutex> guard(res_lock); in __default_memory_resource()
117 lock_guard<mutex> guard(res_lock); in __default_memory_resource()
/external/v8/src/base/utils/
Drandom-number-generator.cc25 LockGuard<Mutex> lock_guard(entropy_mutex.Pointer()); in SetEntropySource() local
32 { LockGuard<Mutex> lock_guard(entropy_mutex.Pointer()); in RandomNumberGenerator() local
/external/parameter-framework/upstream/parameter/
DElementHandle.cpp42 using std::lock_guard;
218 lock_guard<mutex> autoLock(mParameterMgr.getBlackboardMutex()); in setAs()
233 lock_guard<mutex> autoLock(mParameterMgr.getBlackboardMutex()); in getAs()

123