Home
last modified time | relevance | path

Searched refs:ScopedSpinlock (Results 1 – 9 of 9) sorted by relevance

/external/perfetto/src/profiling/memory/
Dscoped_spinlock.h30 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()
Dmalloc_hooks.cc43 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()
Dshared_ring_buffer.h100 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()
Dshared_ring_buffer.cc172 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()
Dwire_protocol.cc84 ScopedSpinlock lock = shmem->AcquireLock(ScopedSpinlock::Mode::Try); in SendWireMessage()
Dshared_ring_buffer_unittest.cc40 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()
Dscoped_spinlock.cc35 void ScopedSpinlock::LockSlow(Mode mode) { in LockSlow()
Dshared_ring_buffer_write_fuzzer.cc85 auto lock = buf->AcquireLock(ScopedSpinlock::Mode::Try); in FuzzRingBufferWrite()
Dunwinding.cc268 auto lock = shmem.AcquireLock(ScopedSpinlock::Mode::Try); in OnDisconnect()