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

Method push

src/vector/vdebug.cpp:434–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 }
433
434 void push(VDebug&& logline) override
435 {
436 unsigned int write_index =
437 m_write_index.fetch_add(1, std::memory_order_relaxed) % m_size;
438 Item& item = m_ring[write_index];
439 SpinLock spinlock(item.flag);
440 item.logline = std::move(logline);
441 item.written = 1;
442 }
443
444 bool try_pop(VDebug& logline) override
445 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected