MCPcopy Create free account
hub / github.com/Samsung/rlottie / SpinLock

Method SpinLock

src/vector/vdebug.cpp:386–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384
385struct SpinLock {
386 SpinLock(std::atomic_flag& flag) : m_flag(flag)
387 {
388 while (m_flag.test_and_set(std::memory_order_acquire))
389 ;
390 }
391
392 ~SpinLock() { m_flag.clear(std::memory_order_release); }
393

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected