Searched refs:ScopedSpinlock (Results 1 – 9 of 9) sorted by relevance
/external/perfetto/src/profiling/memory/ |
D | scoped_spinlock.h | 30 class ScopedSpinlock { 39 ScopedSpinlock(std::atomic<bool>* lock, Mode mode) : lock_(lock) { in ScopedSpinlock() function 47 ScopedSpinlock(const ScopedSpinlock&) = delete; 48 ScopedSpinlock& operator=(const ScopedSpinlock&) = delete; 50 ScopedSpinlock(ScopedSpinlock&& other) noexcept in ScopedSpinlock() function 55 ScopedSpinlock& operator=(ScopedSpinlock&& other) { 57 this->~ScopedSpinlock(); 58 new (this) ScopedSpinlock(std::move(other)); 63 ~ScopedSpinlock() { Unlock(); } in ~ScopedSpinlock()
|
D | malloc_hooks.cc | 43 using perfetto::profiling::ScopedSpinlock; 338 ScopedSpinlock s(&g_client_lock, ScopedSpinlock::Mode::Try); in ShutdownLazy() 376 ScopedSpinlock s(&g_client_lock, ScopedSpinlock::Mode::Try); in HEAPPROFD_ADD_PREFIX() 408 ScopedSpinlock s(&g_client_lock, ScopedSpinlock::Mode::Try); in HEAPPROFD_ADD_PREFIX() 440 ScopedSpinlock s(&g_client_lock, ScopedSpinlock::Mode::Try); in MaybeSampleAllocation() 507 ScopedSpinlock s(&g_client_lock, ScopedSpinlock::Mode::Try); in HEAPPROFD_ADD_PREFIX() 535 ScopedSpinlock s(&g_client_lock, ScopedSpinlock::Mode::Try); in HEAPPROFD_ADD_PREFIX()
|
D | shared_ring_buffer.h | 100 Buffer BeginWrite(const ScopedSpinlock& spinlock, size_t size); 106 Stats GetStats(ScopedSpinlock& spinlock) { in GetStats() 117 ScopedSpinlock AcquireLock(ScopedSpinlock::Mode mode) { in AcquireLock() 118 auto lock = ScopedSpinlock(&meta_->spinlock, mode); in AcquireLock() 153 const ScopedSpinlock& lock) { in GetPointerPositions()
|
D | shared_ring_buffer.cc | 172 const ScopedSpinlock& spinlock, in BeginWrite() 224 ScopedSpinlock spinlock(&meta_->spinlock, ScopedSpinlock::Mode::Blocking); in BeginRead() 271 ScopedSpinlock spinlock(&meta_->spinlock, ScopedSpinlock::Mode::Blocking); in EndRead()
|
D | wire_protocol.cc | 84 ScopedSpinlock lock = shmem->AcquireLock(ScopedSpinlock::Mode::Try); in SendWireMessage()
|
D | shared_ring_buffer_unittest.cc | 40 auto lock = wr->AcquireLock(ScopedSpinlock::Mode::Try); in TryWrite() 167 auto lock = wr.AcquireLock(ScopedSpinlock::Mode::Blocking); in TEST() 270 auto lock = wr->AcquireLock(ScopedSpinlock::Mode::Try); in TEST()
|
D | scoped_spinlock.cc | 35 void ScopedSpinlock::LockSlow(Mode mode) { in LockSlow()
|
D | shared_ring_buffer_write_fuzzer.cc | 85 auto lock = buf->AcquireLock(ScopedSpinlock::Mode::Try); in FuzzRingBufferWrite()
|
D | unwinding.cc | 268 auto lock = shmem.AcquireLock(ScopedSpinlock::Mode::Try); in OnDisconnect()
|