Home
last modified time | relevance | path

Searched refs:mLock (Results 1 – 19 of 19) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/common/
DSpinlock.h39 std::atomic_bool mLock;
42 inline Spinlock::Spinlock() noexcept : mLock(false) {} in Spinlock()
47 return !mLock.load(std::memory_order_relaxed) && in try_lock()
48 !mLock.exchange(true, std::memory_order_acquire); in try_lock()
53 while (mLock.exchange(true, std::memory_order_acquire)) in lock()
56 while (mLock.load(std::memory_order_relaxed)) in lock()
66 mLock.store(false, std::memory_order_release); in unlock()
DSynchronizedValue.h29 ConstStrictLockPtr(const T &value, Lockable &mutex) : mLock(mutex), mValue(value) {} in ConstStrictLockPtr()
31 : mLock(mutex, std::adopt_lock), mValue(value) in ConstStrictLockPtr()
35 : mLock(std::move(other.mLock)), mValue(other.mValue) in ConstStrictLockPtr()
47 std::unique_lock<Lockable> mLock;
337 DerefValue(DerefValue &&other) : mLock(std::move(other.mLock)), mValue(other.mValue) {}
351 explicit DerefValue(SynchronizedValue &outer) : mLock(outer.mMutex), mValue(outer.mValue) {}
353 std::unique_lock<Lockable> mLock;
363 : mLock(std::move(other.mLock)), mValue(other.mValue)
373 : mLock(outer.mMutex), mValue(outer.mValue)
376 std::unique_lock<Lockable> mLock;
/third_party/skia/third_party/externals/oboe/src/opensles/
DAudioOutputStreamOpenSLES.cpp246 mLock.lock(); in close()
251 mLock.unlock(); // avoid recursive lock in close()
253 mLock.lock(); in close()
258 mLock.unlock(); // avoid recursive lock in close()
283 mLock.lock(); in requestStart()
288 mLock.unlock(); in requestStart()
291 mLock.unlock(); in requestStart()
305 mLock.unlock(); in requestStart()
313 mLock.unlock(); in requestStart()
321 std::lock_guard<std::mutex> lock(mLock); in requestPause()
[all …]
DAudioInputStreamOpenSLES.cpp217 mLock.lock(); in close()
222 mLock.unlock(); // avoid recursive lock in close()
224 mLock.lock(); in close()
229 mLock.unlock(); // avoid recursive lock in close()
253 std::lock_guard<std::mutex> lock(mLock); in requestStart()
298 std::lock_guard<std::mutex> lock(mLock); in requestStop()
334 if (mLock.try_lock()) { in updateServiceFrameCounter()
337 mLock.unlock(); in updateServiceFrameCounter()
349 mLock.unlock(); in updateServiceFrameCounter()
DOutputMixerOpenSLES.cpp31 std::lock_guard<std::mutex> lock(mLock); in open()
58 std::lock_guard<std::mutex> lock(mLock); in close()
DEngineOpenSLES.cpp29 std::lock_guard<std::mutex> lock(mLock); in open()
64 std::lock_guard<std::mutex> lock(mLock); in close()
DOutputMixerOpenSLES.h50 std::mutex mLock; variable
DEngineOpenSLES.h55 std::mutex mLock; variable
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dfifo.hpp39 OSALIGNLINE(volatile uint32_t) mLock{0}; in OSALIGNLINE()
62 mLock = 0; in clear()
69 if (mLock) in tryLock()
75 long initial = InterlockedCompareExchange(&mLock, 1, 0); in tryLock()
79 void unlock() { mLock = 0; } in unlock()
/third_party/skia/third_party/externals/oboe/samples/hello-oboe/src/main/cpp/
DHelloOboeEngine.cpp45 std::lock_guard<std::mutex> lock(mLock); in getCurrentOutputLatencyMillis()
75 std::lock_guard<std::mutex> lock(mLock); in setBufferSizeInBursts()
136 std::lock_guard<std::mutex> lock(mLock); in start()
160 std::lock_guard<std::mutex> lock(mLock); in reopenStream()
DHelloOboeEngine.h91 std::mutex mLock; variable
/third_party/skia/third_party/externals/oboe/src/aaudio/
DAudioStreamAAudio.cpp292 std::lock_guard<std::mutex> lock(mLock); in close()
344 std::lock_guard<std::mutex> lock(mLock); in requestStart()
365 std::lock_guard<std::mutex> lock(mLock); in requestPause()
382 std::lock_guard<std::mutex> lock(mLock); in requestFlush()
399 std::lock_guard<std::mutex> lock(mLock); in requestStop()
461 mLock.lock(); in waitForStateChange()
505 mLock.unlock(); // Don't sleep while locked. in waitForStateChange()
511 mLock.lock(); in waitForStateChange()
514 mLock.unlock(); in waitForStateChange()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DSyncMtl.mm33 mLock = nullptr;
46 mLock.reset(new std::mutex());
68 std::unique_lock<std::mutex> lg(*mLock);
89 std::shared_ptr<std::mutex> lockRef = mLock;
Dmtl_command_buffer.mm430 std::lock_guard<std::mutex> lg(mLock);
460 mLock.lock();
465 mLock.unlock();
471 mLock.lock();
473 mLock.unlock();
509 std::lock_guard<std::mutex> lg(mLock);
533 std::lock_guard<std::mutex> lg(mLock);
544 std::lock_guard<std::mutex> lg(mLock);
580 std::lock_guard<std::mutex> lg(mLock);
587 std::lock_guard<std::mutex> lg(mLock);
[all …]
DSyncMtl.h60 std::shared_ptr<std::mutex> mLock; variable
Dmtl_command_buffer.h98 mutable std::mutex mLock; variable
157 mutable std::mutex mLock; variable
/third_party/skia/third_party/externals/oboe/include/oboe/
DAudioStream.h516 std::mutex mLock; // for synchronizing start/stop/close variable
/third_party/skia/third_party/externals/oboe/src/common/
DAudioStream.cpp80 std::lock_guard<std::mutex> lock(mLock); in waitForStateTransition()
/third_party/sqlite/src/
Dsqlite3.c202858 u32 mLock;
205547 if( pRbu->mLock!=mReq ){
206921 if( (1<<i) & p->pRbu->mLock ){
206925 p->pRbu->mLock = 0;
207359 pRbu->mLock |= ((1<<n) - 1) << ofst;