Home
last modified time | relevance | path

Searched refs:locker (Results 1 – 25 of 30) sorted by relevance

12

/third_party/flutter/engine/flutter/fml/synchronization/
Dwaitable_event.cc20 bool WaitWithTimeoutImpl(std::unique_lock<std::mutex>* locker, in WaitWithTimeoutImpl() argument
24 FML_DCHECK(locker->owns_lock()); in WaitWithTimeoutImpl()
34 cv->wait_for(*locker, in WaitWithTimeoutImpl()
58 std::scoped_lock locker(mutex_); in Signal() local
64 std::scoped_lock locker(mutex_); in Reset() local
69 std::unique_lock<std::mutex> locker(mutex_); in Wait() local
71 cv_.wait(locker); in Wait()
76 std::unique_lock<std::mutex> locker(mutex_); in WaitWithTimeout() local
88 cv_.wait_for(locker, in WaitWithTimeout()
113 std::scoped_lock locker(mutex_); in IsSignaledForTest() local
[all …]
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dblocking_queue.cc113 std::unique_lock<std::mutex> locker(mutex_); in Push() local
115 …if (not_full_cond_.wait_for(locker, std::chrono::microseconds(kTimeout)) == std::cv_status::timeou… in Push()
128 std::unique_lock<std::mutex> locker(mutex_); in Front() local
129 …bool timeout = not_empty_cond_.wait_for(locker, std::chrono::seconds(30), [this] { return !queue_-… in Front()
138 std::unique_lock<std::mutex> locker(mutex_); in Pop() local
139 not_empty_cond_.wait(locker, [this] { return !queue_->IsEmpty(); }); in Pop()
/third_party/glib/glib/
Dgthread.h349 g_mutex_locker_free (GMutexLocker *locker) in g_mutex_locker_free() argument
351 g_mutex_unlock ((GMutex *) locker); in g_mutex_locker_free()
427 g_rec_mutex_locker_free (GRecMutexLocker *locker) in g_rec_mutex_locker_free() argument
429 g_rec_mutex_unlock ((GRecMutex *) locker); in g_rec_mutex_locker_free()
538 g_rw_lock_writer_locker_free (GRWLockWriterLocker *locker) in g_rw_lock_writer_locker_free() argument
540 g_rw_lock_writer_unlock ((GRWLock *) locker); in g_rw_lock_writer_locker_free()
593 g_rw_lock_reader_locker_free (GRWLockReaderLocker *locker) in g_rw_lock_reader_locker_free() argument
595 g_rw_lock_reader_unlock ((GRWLock *) locker); in g_rw_lock_reader_locker_free()
/third_party/mindspore/mindspore/ccsrc/ps/ps_cache/ps_data/
Dps_data_channel.cc28 std::unique_lock<std::mutex> locker(channel_mutex_); in TryLockChannel() local
29 channel_.wait(locker, [this] { return channel_open_; }); in TryLockChannel()
38 std::lock_guard<std::mutex> locker(channel_mutex_); in TryWakeChannel() local
Dps_data_prefetch.cc70 std::unique_lock<std::mutex> locker(data_mutex_); in PrefetchData() local
78 if (data_prefetch_.wait_for(locker, std::chrono::seconds(kLongestTimeToWait), in PrefetchData()
96 std::unique_lock<std::mutex> locker(data_mutex_); in FinalizeData() local
104 if (data_process_.wait_for(locker, std::chrono::seconds(kLongestTimeToWait), in FinalizeData()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/qt/qglwtextureshare/
DAsyncQueue.h42 QMutexLocker locker(&mutex); in size()
48 QMutexLocker locker(&mutex); in put()
56 QMutexLocker locker(&mutex); in get()
/third_party/gstreamer/gstplugins_good/ext/qt/
Dqtitem.cc544 QMutexLocker locker(&lock); in setSink() local
556 QMutexLocker locker(&lock); in setBuffer() local
630 QMutexLocker locker(&lock); in initWinSys() local
701 QMutexLocker locker(&lock); in setCaps() local
732 QMutexLocker locker(&lock); in getQtContext() local
743 QMutexLocker locker(&lock); in getContext() local
754 QMutexLocker locker(&lock); in getDisplay() local
765 QMutexLocker locker(&lock); in setDAR() local
774 QMutexLocker locker(&lock); in getDAR() local
783 QMutexLocker locker(&lock); in setForceAspectRatio() local
[all …]
/third_party/node/deps/npm/test/tap/
Dlocker.js7 var locker = require('../../lib/utils/locker.js') variable
8 var lock = locker.lock
9 var unlock = locker.unlock
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/mem_reuse/
Dmem_dynamic_allocator.cc31 std::lock_guard<std::mutex> locker(mutex_); in AllocTensorMem() local
48 std::lock_guard<std::mutex> locker(mutex_); in AllocContinuousTensorMem() local
204 std::lock_guard<std::mutex> locker(mutex_); in FreeTensorMem() local
282 std::lock_guard<std::mutex> locker(mutex_); in ReleaseDeviceRes() local
300 std::lock_guard<std::mutex> locker(mutex_); in DumpDynamicMemPoolInfo() local
Dmem_dynamic_allocator.h99 std::lock_guard<std::mutex> locker(mutex_); in global_idle_mem_buf_map()
/third_party/mindspore/mindspore/ccsrc/profiler/device/
Dprofiling.cc69 std::lock_guard<std::mutex> locker(record_mutex_); in RecordOneStepStartEndInfo() local
76 std::lock_guard<std::mutex> locker(record_mutex_); in RecordOneStepStartEndInfo() local
/third_party/mindspore/mindspore/ccsrc/ps/ps_cache/
Dps_cache_manager.cc175 std::unique_lock<std::mutex> locker(data_mutex_); in InitParameterServer() local
176 …insert_init_info_.wait(locker, [this] { return finish_insert_init_info_ == true || running_ == fal… in InitParameterServer()
208 std::unique_lock<std::mutex> locker(data_mutex_); in InitDataChannel() local
209 data_prase_.wait(locker, [this] { return !channel_name_.empty() || running_ == false; }); in InitDataChannel()
265 std::lock_guard<std::mutex> locker(channel_mutex_); in channel_name() local
273 std::lock_guard<std::mutex> locker(channel_mutex_); in set_channel_name() local
301 std::unique_lock<std::mutex> locker(data_mutex_); in IncreaseGraphStep() local
302 …data_prase_.wait(locker, [this] { return ((finish_init_parameter_server_ == true) || (running_ == … in IncreaseGraphStep()
372 std::unique_lock<std::mutex> locker(data_mutex_); in ProcessData() local
374 (void)data_prase_.wait_for(locker, std::chrono::milliseconds(longest_time_to_wait)); in ProcessData()
[all …]
/third_party/boost/boost/interprocess/sync/detail/
Dcondition_algorithm_8a.hpp208 scoped_lock<mutex_type> locker(data.get_mtx_unblock_lock()); in signal() local
275 scoped_lock<mutex_type> locker(data.get_mtx_unblock_lock()); in wait() local
/third_party/boost/boost/thread/win32/
Dcondition_variable.hpp258 relocker<lock_type> locker(lock); in do_wait_until() local
260 locker.unlock(); in do_wait_until()
274 locker.lock(); in do_wait_until()
/third_party/abseil-cpp/absl/synchronization/
Dmutex_benchmark.cc84 RaiiLocker<MutexType> locker(&shared->mu); in BM_Contended() local
/third_party/node/test/embedding/
Dembedtest.cc73 Locker locker(isolate); in RunNodeInstance() local
/third_party/node/src/
Dnode_main_instance.cc110 Locker locker(isolate_); in Run() local
Dnode_worker.cc167 Locker locker(isolate); in WorkerThreadData() local
264 Locker locker(isolate_); in Run() local
/third_party/boost/libs/thread/doc/
Dexternal_locking.qbk512 : lock_(lock) // Store reference to locker
513 , tmp_lock_(lock.move()) // Move ownership to temporary locker
524 lock_=tmp_lock_.move(); // Move ownership to nesting locker
560 … BOOST_STATIC_ASSERT((is_strict_lock<Locker>::value)); // locker is a strict locker "sur parole"
563 …efine BOOST_THREAD_EXTERNALLY_LOCKED_NO_CHECK_OWNERSHIP if you don't want to check locker ownership
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/
Dgpu_device_context.cc409 std::lock_guard<std::mutex> locker(launch_mutex_); in LaunchKernel() local
413 std::lock_guard<std::mutex> locker(launch_mutex_); in LaunchKernel() local
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/
Dmutex_benchmark.cc200 RaiiLocker<MutexType> locker(&shared->mu); in BM_Contended() local
/third_party/node/deps/npm/lib/
Dinstall.js117 var locker = require('./utils/locker.js') variable
118 var lock = locker.lock
119 var unlock = locker.unlock
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/cpu/
Dcpu_device_context.cc271 std::lock_guard<std::mutex> locker(launch_mutex_); in LaunchKernelWithProfiling() local
/third_party/libusb/libusb/os/
Dhaiku_usb_backend.cpp205 BAutolock locker(fTransfersLock); in SubmitTransfer() local
/third_party/node/doc/api/
Dembedding.md122 Locker locker(isolate);

12